21 #define DEBUG_TYPE "hexagon-mcexpr"
38 return Expr->findAssociatedFragment();
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)
const MCSymbol & getSymbol() const
This represents an "assembler immediate".
void setMustNotExtend(bool Val=true)
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
MCExpr const * getExpr() const
Base class for the full range of assembler expressions which are needed for parsing.
Represent a reference to a symbol from inside an expression.
bool signMismatch() const
static bool classof(MCExpr const *E)
Context object for machine code objects.
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...
Function Alias Analysis false
const MCExpr * getLHS() const
Get the left-hand side expression of the binary operator.
Streaming machine code generation interface.
static HexagonMCExpr * create(MCExpr const *Expr, MCContext &Ctx)
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
void setSignMismatch(bool Val=true)
Binary assembler expressions.
static void fixELFSymbolsInTLSFixupsImpl(const MCExpr *Expr, MCAssembler &Asm)
bool evaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const
Try to evaluate the expression to a relocatable value, i.e.
void visitUsedExpr(const MCExpr &Expr)
llvm_unreachable("Unknown RegBank!")
const MCExpr * getRHS() const
Get the right-hand side expression of the binary operator.
void visitUsedExpr(MCStreamer &Streamer) const override
References to labels and assigned expressions.
bool mustNotExtend() const
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
VariantKind getKind() const
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.