24 #define DEBUG_TYPE "sparcmcexpr" 45 bool closeParen =
true;
208 auto ELFSymbol = cast<MCSymbolELF>(
Symbol);
209 if (!ELFSymbol->isBindingSet()) {
211 ELFSymbol->setExternal(
true);
fixup_sparc_got22 - 22-bit fixup corresponding to got22(foo)
fixup_sparc_13 - 13-bit fixup
static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm)
This class represents lattice values for constants.
This represents an "assembler immediate".
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
static bool printVariantKind(raw_ostream &OS, VariantKind Kind)
const MCExpr * getLHS() const
Get the left-hand side expression of the binary operator.
void registerSymbol(const MCSymbol &Symbol, bool *Created=nullptr)
fixup_sparc_m44 - 10-bit fixup corresponding to m44(foo)
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
MCContext & getContext() const
Encapsulates the layout of an assembly file at a particular point in time.
fixup_sparc_got10 - 10-bit fixup corresponding to got10(foo)
Base class for the full range of assembler expressions which are needed for parsing.
Represent a reference to a symbol from inside an expression.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE R Default(T Value)
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.
fixup_sparc_hm - 10-bit fixup corresponding to hm(foo)
Sparc::Fixups getFixupKind() const
getFixupKind - Get the fixup kind of this expression.
This class is intended to be used as a base class for asm properties and features specific to the tar...
A switch()-like statement whose cases are string literals.
Streaming machine code generation interface.
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
fixup_sparc_hh - 22-bit fixup corresponding to hh(foo)
static VariantKind parseVariantKind(StringRef name)
fixup_sparc_l44 - 12-bit fixup corresponding to l44(foo)
const MCExpr * getSubExpr() const
getSubExpr - Get the child of this expression.
Binary assembler expressions.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
fixup_sparc_lo10 - 10-bit fixup corresponding to lo(foo)
fixup_sparc_got13 - 13-bit fixup corresponding to got13(foo)
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
const MCSymbol & getSymbol() const
void visitUsedExpr(const MCExpr &Expr)
fixup_sparc_pc22 - 22-bit fixup corresponding to pc22(foo)
LLVM_ATTRIBUTE_ALWAYS_INLINE StringSwitch & Case(StringLiteral S, T Value)
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
References to labels and assigned expressions.
void visitUsedExpr(MCStreamer &Streamer) const override
static const SparcMCExpr * create(VariantKind Kind, const MCExpr *Expr, MCContext &Ctx)
VariantKind getKind() const
getOpcode - Get the kind of this expression.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
Target specific expression.
fixups for Thread Local Storage
fixup_sparc_hi22 - 22-bit fixup corresponding to hi(foo) for sethi
fixup_sparc_h44 - 22-bit fixup corresponding to h44(foo)
fixup_sparc_pc10 - 10-bit fixup corresponding to pc10(foo)