Go to the documentation of this file.
24 #define DEBUG_TYPE "sparcmcexpr"
212 auto ELFSymbol = cast<MCSymbolELF>(
Symbol);
213 if (!ELFSymbol->isBindingSet())
StringSwitch & Case(StringLiteral S, T Value)
void visitUsedExpr(const MCExpr &Expr)
This is an optimization pass for GlobalISel generic memory operations.
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Context object for machine code objects.
LLVM_NODISCARD R Default(T Value)
@ fixup_sparc_wplt30
fixup_sparc_wplt30
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)
@ fixup_sparc_tls_gd_hi22
fixups for Thread Local Storage
Binary assembler expressions.
@ fixup_sparc_tls_ie_hi22
static VariantKind parseVariantKind(StringRef name)
@ fixup_sparc_hi22
fixup_sparc_hi22 - 22-bit fixup corresponding to hi(foo) for sethi
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.
@ Target
Target specific expression.
static const SparcMCExpr * create(VariantKind Kind, const MCExpr *Expr, MCContext &Ctx)
@ fixup_sparc_h44
fixup_sparc_h44 - 22-bit fixup corresponding to h44(foo)
@ fixup_sparc_pc22
fixup_sparc_pc22 - 22-bit fixup corresponding to pc22(foo)
const MCExpr * getRHS() const
Get the right-hand side expression of the binary operator.
void visitUsedExpr(MCStreamer &Streamer) const override
This class implements an extremely fast bulk output stream that can only output to a stream.
@ fixup_sparc_tls_ldo_lox10
const MCSymbol & getSymbol() const
@ fixup_sparc_tls_ie_lo10
@ fixup_sparc_13
fixup_sparc_13 - 13-bit fixup
@ Binary
Binary expressions.
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
@ fixup_sparc_tls_ldm_call
@ fixup_sparc_tls_ldo_add
@ fixup_sparc_tls_gd_call
@ fixup_sparc_tls_ldm_lo10
Represent a reference to a symbol from inside an expression.
@ fixup_sparc_tls_le_lox10
@ fixup_sparc_got13
fixup_sparc_got13 - 13-bit fixup corresponding to got13(foo)
PowerPC TLS Dynamic Call Fixup
@ fixup_sparc_pc10
fixup_sparc_pc10 - 10-bit fixup corresponding to pc10(foo)
StringRef - Represent a constant reference to a string, i.e.
static bool printVariantKind(raw_ostream &OS, VariantKind Kind)
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
@ fixup_sparc_tls_gd_lo10
const MCExpr * getSubExpr() const
getSubExpr - Get the child of this expression.
@ fixup_sparc_l44
fixup_sparc_l44 - 12-bit fixup corresponding to l44(foo)
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
Sparc::Fixups getFixupKind() const
getFixupKind - Get the fixup kind of this expression.
@ fixup_sparc_tls_le_hix22
Encapsulates the layout of an assembly file at a particular point in time.
@ fixup_sparc_m44
fixup_sparc_m44 - 10-bit fixup corresponding to m44(foo)
@ fixup_sparc_tls_ldo_hix22
@ fixup_sparc_lo10
fixup_sparc_lo10 - 10-bit fixup corresponding to lo(foo)
@ fixup_sparc_hh
fixup_sparc_hh - 22-bit fixup corresponding to hh(foo)
@ fixup_sparc_got22
fixup_sparc_got22 - 22-bit fixup corresponding to got22(foo)
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.
A switch()-like statement whose cases are string literals.
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
This represents an "assembler immediate".
@ fixup_sparc_tls_ldm_hi22
VariantKind getKind() const
getOpcode - Get the kind of this expression.
@ fixup_sparc_got10
fixup_sparc_got10 - 10-bit fixup corresponding to got10(foo)
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.
@ fixup_sparc_lm
fixup_sparc_lm - 22-bit fixup corresponding to lm(foo)
@ fixup_sparc_tls_ldm_add
@ fixup_sparc_hm
fixup_sparc_hm - 10-bit fixup corresponding to hm(foo)
const MCExpr * getLHS() const
Get the left-hand side expression of the binary operator.