Go to the documentation of this file.
21 #define DEBUG_TYPE "hexagon-mcexpr"
86 assert((!Val || !MustNotExtend) &&
"Extension contradiction");
92 assert((!Val || !MustExtend) &&
"Extension contradiction");
106 HexagonMCExpr::HexagonMCExpr(
MCExpr const *Expr)
107 : Expr(Expr), MustNotExtend(
false), MustExtend(
false), S27_2_reloc(
false),
108 SignMismatch(
false) {}
111 Expr->
print(OS, MAI);
VariantKind getKind() const
void visitUsedExpr(const MCExpr &Expr)
This is an optimization pass for GlobalISel generic memory operations.
MCFragment * findAssociatedFragment() const override
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
Context object for machine code objects.
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)
static bool classof(MCExpr const *E)
Binary assembler expressions.
const MCExpr * getExpr() const
bool evaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const
Try to evaluate the expression to a relocatable value, i.e.
bool signMismatch() const
Streaming machine code generation interface.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
@ Target
Target specific expression.
static HexagonMCExpr * create(MCExpr const *Expr, MCContext &Ctx)
Common register allocation spilling lr str ldr sxth r3 ldr mla r4 can be
This class implements an extremely fast bulk output stream that can only output to a stream.
const MCSymbol & getSymbol() const
void visitUsedExpr(MCStreamer &Streamer) const override
@ Binary
Binary expressions.
void setSignMismatch(bool Val=true)
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
void setMustNotExtend(bool Val=true)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Represent a reference to a symbol from inside an expression.
PowerPC TLS Dynamic Call Fixup
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void setS27_2_reloc(bool Val=true)
bool mustNotExtend() const
Encapsulates the layout of an assembly file at a particular point in time.
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.
MCFragment * findAssociatedFragment() const
Find the "associated section" for this expression, which is currently defined as the absolute section...
This represents an "assembler immediate".
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
void setMustExtend(bool Val=true)
Base class for the full range of assembler expressions which are needed for parsing.