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);
void setMustExtend(bool Val=true)
This class represents lattice values for constants.
This represents an "assembler immediate".
VariantKind getKind() const
void setMustNotExtend(bool Val=true)
const MCExpr * getLHS() const
Get the left-hand side expression of the binary operator.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
Encapsulates the layout of an assembly file at a particular point in time.
MCFragment * findAssociatedFragment() const override
Base class for the full range of assembler expressions which are needed for parsing.
Represent a reference to a symbol from inside an expression.
static bool classof(MCExpr const *E)
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.
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
void setS27_2_reloc(bool Val=true)
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.
MCExpr const * getExpr() const
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
static HexagonMCExpr * create(MCExpr const *Expr, MCContext &Ctx)
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
void setSignMismatch(bool Val=true)
Binary assembler expressions.
bool mustNotExtend() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
bool signMismatch() const
const MCSymbol & getSymbol() const
static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm)
MCFragment * findAssociatedFragment() const
Find the "associated section" for this expression, which is currently defined as the absolute section...
void visitUsedExpr(const MCExpr &Expr)
void visitUsedExpr(MCStreamer &Streamer) const override
References to labels and assigned expressions.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This class implements an extremely fast bulk output stream that can only output to a stream...
Target specific expression.