16 #define DEBUG_TYPE "nvptx-mcexpr"
44 if (HexStr.length() < NumHex)
45 OS << std::string(NumHex - HexStr.length(),
'0');
58 SymExpr->
print(OS, MAI);
uint64_t getZExtValue() const
Get zero extended value.
APInt bitcastToAPInt() const
Represent a reference to a symbol from inside an expression.
Context object for machine code objects.
opStatus convert(const fltSemantics &ToSemantics, roundingMode RM, bool *losesInfo)
static const NVPTXGenericMCSymbolRefExpr * create(const MCSymbolRefExpr *SymExpr, MCContext &Ctx)
static const fltSemantics & IEEEsingle()
This class is intended to be used as a base class for asm properties and features specific to the tar...
static const NVPTXFloatMCExpr * create(VariantKind Kind, const APFloat &Flt, MCContext &Ctx)
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
APFloat getAPFloat() const
getSubExpr - Get the child of this expression.
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
Class for arbitrary precision integers.
static const fltSemantics & IEEEdouble()
void printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const override
static std::string utohexstr(uint64_t X, bool LowerCase=false)
void print(raw_ostream &OS, const MCAsmInfo *MAI, bool InParens=false) const
This class implements an extremely fast bulk output stream that can only output to a stream...
A wrapper for MCSymbolRefExpr that tells the assembly printer that the symbol should be enclosed by g...