Go to the documentation of this file.
11 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXMCEXPR_H
12 #define LLVM_LIB_TARGET_NVPTX_NVPTXMCEXPR_H
34 : Kind(Kind), Flt(
std::
move(Flt)) {}
73 const MCFixup *Fixup)
const override {
94 : SymExpr(_SymExpr) {}
115 const MCFixup *Fixup)
const override {
static const NVPTXFloatMCExpr * create(VariantKind Kind, const APFloat &Flt, MCContext &Ctx)
This is an optimization pass for GlobalISel generic memory operations.
MCFragment * findAssociatedFragment() const override
@ VK_NVPTX_HALF_PREC_FLOAT
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 const NVPTXGenericMCSymbolRefExpr * create(const MCSymbolRefExpr *SymExpr, MCContext &Ctx)
@ VK_NVPTX_DOUBLE_PREC_FLOAT
static const NVPTXFloatMCExpr * createConstantFPDouble(const APFloat &Flt, MCContext &Ctx)
const MCSymbolRefExpr * getSymbolExpr() const
getOpcode - Get the kind of this expression.
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
static const NVPTXFloatMCExpr * createConstantFPSingle(const APFloat &Flt, MCContext &Ctx)
Streaming machine code generation interface.
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
@ Target
Target specific expression.
MCFragment * findAssociatedFragment() const override
void fixELFSymbolsInTLSFixups(MCAssembler &Asm) const override
This class implements an extremely fast bulk output stream that can only output to a stream.
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
APFloat getAPFloat() const
getSubExpr - Get the child of this expression.
static const NVPTXFloatMCExpr * createConstantFPHalf(const APFloat &Flt, MCContext &Ctx)
void visitUsedExpr(MCStreamer &Streamer) const override
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Represent a reference to a symbol from inside an expression.
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
@ VK_NVPTX_SINGLE_PREC_FLOAT
static bool classof(const MCExpr *E)
void visitUsedExpr(MCStreamer &Streamer) const override
Encapsulates the layout of an assembly file at a particular point in time.
static bool classof(const MCExpr *E)
VariantKind getKind() const
getOpcode - Get the kind of this expression.
This represents an "assembler immediate".
This is an extension point for target-specific MCExpr subclasses to implement.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Base class for the full range of assembler expressions which are needed for parsing.
bool evaluateAsRelocatableImpl(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const override
A wrapper for MCSymbolRefExpr that tells the assembly printer that the symbol should be enclosed by g...