25 #define DEBUG_TYPE "aarch64symbolrefexpr" 33 switch (static_cast<uint32_t>(
getKind())) {
65 case VK_GOT:
return ":got:";
VariantKind getKind() const
Get the kind of this expression.
This class represents lattice values for constants.
This represents an "assembler immediate".
static const AArch64MCExpr * create(const MCExpr *Expr, VariantKind Kind, MCContext &Ctx)
const MCExpr * getLHS() const
Get the left-hand side expression of the binary operator.
StringRef getVariantKindName() const
Convert the variant kind into an ELF-appropriate modifier (e.g.
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.
Represent a reference to a symbol from inside an expression.
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
Context object for machine code objects.
bool evaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const
Try to evaluate the expression to a relocatable value, i.e.
const MCExpr * getRHS() const
Get the right-hand side expression of the binary operator.
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
const MCExpr * getSubExpr() const
Get the expression this modifier applies to.
const MCSymbolRefExpr * getSymA() const
void visitUsedExpr(MCStreamer &Streamer) const override
Binary assembler expressions.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
const MCSymbol & getSymbol() const
void visitUsedExpr(const MCExpr &Expr)
static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm)
static MCValue get(const MCSymbolRefExpr *SymA, const MCSymbolRefExpr *SymB=nullptr, int64_t Val=0, uint32_t RefKind=0)
References to labels and assigned expressions.
static VariantKind getSymbolLoc(VariantKind Kind)
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
This class implements an extremely fast bulk output stream that can only output to a stream...
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
StringRef - Represent a constant reference to a string, i.e.
Target specific expression.
MCFragment * findAssociatedFragment() const override