Go to the documentation of this file.
25 #define DEBUG_TYPE "aarch64symbolrefexpr"
72 case VK_GOT:
return ":got:";
static const AArch64MCExpr * create(const MCExpr *Expr, VariantKind Kind, MCContext &Ctx)
void visitUsedExpr(const MCExpr &Expr)
This is an optimization pass for GlobalISel generic memory operations.
Context object for machine code objects.
VariantKind getKind() const
Get the kind of this expression.
MCFragment * findAssociatedFragment() const override
This class is intended to be used as a base class for asm properties and features specific to the tar...
static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm)
Binary assembler expressions.
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
bool evaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const
Try to evaluate the expression to a relocatable value, i.e.
Streaming machine code generation interface.
const MCExpr * getSubExpr() const
Get the expression this modifier applies to.
@ Target
Target specific expression.
const MCExpr * getRHS() const
Get the right-hand side expression of the binary operator.
This class implements an extremely fast bulk output stream that can only output to a stream.
const MCSymbol & getSymbol() const
int64_t getConstant() const
const MCSymbolRefExpr * getSymA() const
@ Binary
Binary expressions.
static MCValue get(const MCSymbolRefExpr *SymA, const MCSymbolRefExpr *SymB=nullptr, int64_t Val=0, uint32_t RefKind=0)
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
Represent a reference to a symbol from inside an expression.
PowerPC TLS Dynamic Call Fixup
StringRef - Represent a constant reference to a string, i.e.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void visitUsedExpr(MCStreamer &Streamer) const override
Encapsulates the layout of an assembly file at a particular point in time.
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
StringRef getVariantKindName() const
Convert the variant kind into an ELF-appropriate modifier (e.g.
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
@ SymbolRef
References to labels and assigned expressions.
@ Unary
Unary expressions.
@ Constant
Constant expressions.
This represents an "assembler immediate".
static VariantKind getSymbolLoc(VariantKind Kind)
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Base class for the full range of assembler expressions which are needed for parsing.
const MCSymbolRefExpr * getSymB() const
const MCExpr * getLHS() const
Get the left-hand side expression of the binary operator.