class IntInit
Declaration
class IntInit : public TypedInit { /* full declaration omitted */ };
Description
'7' - Represent an initialization by a literal integer value.
Declared at: llvm/include/llvm/TableGen/Record.h:578
Inherits from: TypedInit
Member Variables
- private int64_t Value
Inherited from Init:
Method Overview
- private IntInit(llvm::RecordKeeper & RK, int64_t V)
- public IntInit(const llvm::IntInit &)
- public static bool classof(const llvm::Init * I)
- public llvm::Init * convertInitializerBitRange(ArrayRef<unsigned int> Bits) const
- public llvm::Init * convertInitializerTo(llvm::RecTy * Ty) const
- public static llvm::IntInit * get(llvm::RecordKeeper & RK, int64_t V)
- public std::string getAsString() const
- public llvm::Init * getBit(unsigned int Bit) const
- public int64_t getValue() const
- public bool isConcrete() const
Inherited from TypedInit:
- public classof
- public convertInitListSlice
- public convertInitializerBitRange
- public convertInitializerTo
- public getCastTo
- public getFieldType
- public getRecordKeeper
- public getType
Inherited from Init:
- public convertInitListSlice
- public convertInitializerBitRange
- public convertInitializerTo
- public dump
- public getAsString
- public getAsUnquotedString
- public getBit
- public getCastTo
- public getFieldType
- public getKind
- public getRecordKeeper
- public isComplete
- public isConcrete
- public print
- public resolveReferences
Methods
¶IntInit(llvm::RecordKeeper& RK, int64_t V)
IntInit(llvm::RecordKeeper& RK, int64_t V)
Declared at: llvm/include/llvm/TableGen/Record.h:581
Parameters
- llvm::RecordKeeper& RK
- int64_t V
¶IntInit(const llvm::IntInit&)
IntInit(const llvm::IntInit&)
Declared at: llvm/include/llvm/TableGen/Record.h:585
Parameters
- const llvm::IntInit&
¶static bool classof(const llvm::Init* I)
static bool classof(const llvm::Init* I)
Declared at: llvm/include/llvm/TableGen/Record.h:588
Parameters
- const llvm::Init* I
¶llvm::Init* convertInitializerBitRange(
ArrayRef<unsigned int> Bits) const
llvm::Init* convertInitializerBitRange(
ArrayRef<unsigned int> Bits) const
Description
This function is used to implement the bit range selection operator. Given a value, it selects the specified bits, returning them as a new \p Init of type \p bits. If it is not legal to use the bit selection operator on this value, null is returned.
Declared at: llvm/include/llvm/TableGen/Record.h:597
Parameters
- ArrayRef<unsigned int> Bits
¶llvm::Init* convertInitializerTo(
llvm::RecTy* Ty) const
llvm::Init* convertInitializerTo(
llvm::RecTy* Ty) const
Description
Convert to a value whose type is \p Ty, or return null if this is not possible. This can happen if the value's type is convertible to \p Ty, but there are unresolved references.
Declared at: llvm/include/llvm/TableGen/Record.h:596
Parameters
- llvm::RecTy* Ty
¶static llvm::IntInit* get(llvm::RecordKeeper& RK,
int64_t V)
static llvm::IntInit* get(llvm::RecordKeeper& RK,
int64_t V)
Declared at: llvm/include/llvm/TableGen/Record.h:592
Parameters
- llvm::RecordKeeper& RK
- int64_t V
¶std::string getAsString() const
std::string getAsString() const
Description
Convert this value to a literal form.
Declared at: llvm/include/llvm/TableGen/Record.h:600
¶llvm::Init* getBit(unsigned int Bit) const
llvm::Init* getBit(unsigned int Bit) const
Description
Get the \p Init value of the specified bit.
Declared at: llvm/include/llvm/TableGen/Record.h:602
Parameters
- unsigned int Bit
¶int64_t getValue() const
int64_t getValue() const
Declared at: llvm/include/llvm/TableGen/Record.h:594
¶bool isConcrete() const
bool isConcrete() const
Description
Is this a concrete and fully resolved value without any references or stuck operations? Unset values are concrete.
Declared at: llvm/include/llvm/TableGen/Record.h:599