class MCConstantExpr
Declaration
class MCConstantExpr : public MCExpr { /* full declaration omitted */ };
Description
/ Represent a constant integer expression.
Declared at: llvm/include/llvm/MC/MCExpr.h:144
Inherits from: MCExpr
Member Variables
- private int64_t Value
- private static const unsigned int SizeInBytesBits = 8
- private static const unsigned int SizeInBytesMask = (1 << SizeInBytesBits) - 1
- private static const unsigned int PrintInHexBit = 1 << SizeInBytesBits
Method Overview
- private MCConstantExpr(int64_t Value, bool PrintInHex, unsigned int SizeInBytes)
- public static bool classof(const llvm::MCExpr * E)
- public static const llvm::MCConstantExpr * create(int64_t Value, llvm::MCContext & Ctx, bool PrintInHex = false, unsigned int SizeInBytes = 0)
- private static unsigned int encodeSubclassData(bool PrintInHex, unsigned int SizeInBytes)
- public unsigned int getSizeInBytes() const
- public int64_t getValue() const
- public bool useHexFormat() const
Inherited from MCExpr:
- public dump
- public evaluateAsAbsolute
- public evaluateAsAbsolute
- public evaluateAsAbsolute
- public evaluateAsAbsolute
- public evaluateAsAbsolute
- public evaluateAsRelocatable
- protected evaluateAsRelocatableImpl
- public evaluateAsValue
- public evaluateKnownAbsolute
- public findAssociatedFragment
- public getKind
- public getLoc
- protected getSubclassData
- public print
Methods
¶MCConstantExpr(int64_t Value,
bool PrintInHex,
unsigned int SizeInBytes)
MCConstantExpr(int64_t Value,
bool PrintInHex,
unsigned int SizeInBytes)
Declared at: llvm/include/llvm/MC/MCExpr.h:157
Parameters
- int64_t Value
- bool PrintInHex
- unsigned int SizeInBytes
¶static bool classof(const llvm::MCExpr* E)
static bool classof(const llvm::MCExpr* E)
Description
@ }
Declared at: llvm/include/llvm/MC/MCExpr.h:182
Parameters
- const llvm::MCExpr* E
¶static const llvm::MCConstantExpr* create(
int64_t Value,
llvm::MCContext& Ctx,
bool PrintInHex = false,
unsigned int SizeInBytes = 0)
static const llvm::MCConstantExpr* create(
int64_t Value,
llvm::MCContext& Ctx,
bool PrintInHex = false,
unsigned int SizeInBytes = 0)
Description
@ {
Declared at: llvm/include/llvm/MC/MCExpr.h:165
Parameters
- int64_t Value
- llvm::MCContext& Ctx
- bool PrintInHex = false
- unsigned int SizeInBytes = 0
¶static unsigned int encodeSubclassData(
bool PrintInHex,
unsigned int SizeInBytes)
static unsigned int encodeSubclassData(
bool PrintInHex,
unsigned int SizeInBytes)
Declared at: llvm/include/llvm/MC/MCExpr.h:152
Parameters
- bool PrintInHex
- unsigned int SizeInBytes
¶unsigned int getSizeInBytes() const
unsigned int getSizeInBytes() const
Declared at: llvm/include/llvm/MC/MCExpr.h:174
¶int64_t getValue() const
int64_t getValue() const
Description
@ } @ {
Declared at: llvm/include/llvm/MC/MCExpr.h:173
¶bool useHexFormat() const
bool useHexFormat() const
Declared at: llvm/include/llvm/MC/MCExpr.h:178