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:564
Inherits from: TypedInit
Member Variables
Inherited from Init:
Method Overview
- 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(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 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 isComplete
- public isConcrete
- public print
- public resolveReferences
Methods
¶IntInit(const llvm::IntInit&)
IntInit(const llvm::IntInit&)
Declared at: llvm/include/llvm/TableGen/Record.h:571
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:574
Parameters
- const llvm::Init* I
¶llvm::Init* convertInitializerBitRange(
ArrayRef<unsigned int> Bits) const
llvm::Init* convertInitializerBitRange(
ArrayRef<unsigned int> Bits) const
Description
This method is used to implement the bitrange selection operator. Given an initializer, it selects the specified bits out, returning them as a new init of bits type. If it is not legal to use the bit subscript operator on this initializer, return null.
Declared at: llvm/include/llvm/TableGen/Record.h:583
Parameters
- ArrayRef<unsigned int> Bits
¶llvm::Init* convertInitializerTo(
llvm::RecTy* Ty) const
llvm::Init* convertInitializerTo(
llvm::RecTy* Ty) const
Description
Convert to an initializer whose type is-a Ty, or return nullptr if this is not possible (this can happen if the initializer's type is convertible to Ty, but there are unresolved references).
Declared at: llvm/include/llvm/TableGen/Record.h:582
Parameters
- llvm::RecTy* Ty
¶static llvm::IntInit* get(int64_t V)
static llvm::IntInit* get(int64_t V)
Declared at: llvm/include/llvm/TableGen/Record.h:578
Parameters
- int64_t V
¶std::string getAsString() const
std::string getAsString() const
Description
Convert this value to a string form.
Declared at: llvm/include/llvm/TableGen/Record.h:586
¶llvm::Init* getBit(unsigned int Bit) const
llvm::Init* getBit(unsigned int Bit) const
Description
This method is used to return the initializer for the specified bit.
Declared at: llvm/include/llvm/TableGen/Record.h:588
Parameters
- unsigned int Bit
¶int64_t getValue() const
int64_t getValue() const
Declared at: llvm/include/llvm/TableGen/Record.h:580
¶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:585