llvm::Init

Synopsis

Declared in <llvm/TableGen/Record.h>

class Init;

Member Functions

NameDescription
Init [constructor] [deleted]Copy constructor
~Init [destructor] [virtual]Destructor
operator= [deleted]Copy assignment operator
convertInitializerBitRange [virtual]This function is used to implement the bit range selection operator. Given a value, it selects the specified bits, returning them as a new Init of type bits. If it is not legal to use the bit selection operator on this value, null is returned.
convertInitializerTo [virtual]Convert to a value whose type is Ty, or return null if this is not possible. This can happen if the value's type is convertible to Ty, but there are unresolved references.
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]This function is used by classes that refer to other variables which may not be defined at the time the expression is formed. If a value is set for the variable later, this method will be called on users of the value to allow the value to propagate out.

Protected Enums

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

Protected Member Functions

Name
Init [constructor]

Protected Data Members

Name
Opc

Derived Classes

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