llvm::Init

Represents a TableGen initializer value.

Synopsis

Declared in <llvm/TableGen/Record.h>

class Init;

Member Functions

NameDescription
Init [constructor] [deleted]Copying an Init is not supported.
~Init [destructor] [virtual]Destroy this initializer.
operator= [deleted]Assigning an Init is not supported.
convertInitializerBitRange [virtual]Select a bit range from this initializer.
convertInitializerTo [virtual]Convert this initializer to Ty.
dump Debugging method that may be called through a debugger; just invokes print on stderr.
getAsString [virtual]Convert this value to a literal form.
getAsUnquotedString [virtual]Convert this value to a literal form, without adding quotes around a string.
getBit [virtual]Get the Init value of the specified bit.
getCastTo [virtual]If this value is convertible to type Ty, return a value whose type is Ty, generating a !cast operation if required. Otherwise, return null.
getFieldType [virtual]This function is used to implement the FieldInit class. Implementors of this method should return the type of the named field if they are of type record.
getKind Get the kind (type) of the value.
getRecordKeeper Get the record keeper that initialized this Init.
isComplete [virtual]Is this a complete value with no unset (uninitialized) subvalues?
isConcrete [virtual]Is this a concrete and fully resolved value without any references or stuck operations? Unset values are concrete.
print Print this value.
resolveReferences [virtual]Resolve references in this initializer.

Protected Enums

NameDescription
InitKind Discriminator enum (for isa<>, dyn_cast<>, et al.)

Protected Member Functions

NameDescription
Init [constructor]Construct an initializer of kind K with opcode Opc.

Protected Data Members

NameDescription
Opc Stores the opcode for unary, binary, and ternary operation initializers.

Derived Classes

NameDescription
ArgumentInit Represents a positional or named TableGen argument.
TypedInit This is the common superclass of types that have a specific, explicit type, stored in ValueTy.
UnsetInit '?' - Represents an uninitialized value.