15 #ifndef LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCEXPR_H 16 #define LLVM_LIB_TARGET_RISCV_MCTARGETDESC_RISCVMCEXPR_H 40 int64_t evaluateAsInt64(int64_t
Value)
const;
46 : Expr(Expr), Kind(Kind) {}
static bool classof(const MCExpr *E)
bool evaluateAsConstant(int64_t &Res) const
This class represents lattice values for constants.
This represents an "assembler immediate".
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
VariantKind getKind() const
static StringRef getVariantKindName(VariantKind Kind)
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Encapsulates the layout of an assembly file at a particular point in time.
Base class for the full range of assembler expressions which are needed for parsing.
This is an extension point for target-specific MCExpr subclasses to implement.
Context object for machine code objects.
const MCFixup * getPCRelHiFixup() const
Get the MCExpr of the VK_RISCV_PCREL_HI Fixup that the VK_RISCV_PCREL_LO points to.
const MCExpr * getSubExpr() const
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.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
PowerPC TLS Dynamic Call Fixup
static bool classof(const RISCVMCExpr *)
MCFragment * findAssociatedFragment() const
Find the "associated section" for this expression, which is currently defined as the absolute section...
MCFragment * findAssociatedFragment() const override
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
static VariantKind getVariantKindForName(StringRef name)
LLVM Value Representation.
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
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.
void visitUsedExpr(MCStreamer &Streamer) const override
static const RISCVMCExpr * create(const MCExpr *Expr, VariantKind Kind, MCContext &Ctx)