16 #define DEBUG_TYPE "lanaimcexpr"
This class represents lattice values for constants.
This represents an "assembler immediate".
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
static const LanaiMCExpr * create(VariantKind Kind, const MCExpr *Expr, MCContext &Ctx)
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
int64_t getConstant() const
const MCSymbolRefExpr * getSymB() const
Encapsulates the layout of an assembly file at a particular point in time.
Base class for the full range of assembler expressions which are needed for parsing.
Context object for machine code objects.
const MCExpr * getSubExpr() const
bool evaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const
Try to evaluate the expression to a relocatable value, i.e.
This class is intended to be used as a base class for asm properties and features specific to the tar...
Streaming machine code generation interface.
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
const MCSymbolRefExpr * getSymA() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void visitUsedExpr(const MCExpr &Expr)
static MCValue get(const MCSymbolRefExpr *SymA, const MCSymbolRefExpr *SymB=nullptr, int64_t Val=0, uint32_t RefKind=0)
VariantKind getKind() const
void visitUsedExpr(MCStreamer &Streamer) const override
This class implements an extremely fast bulk output stream that can only output to a stream...