[#llvm-Init] = xref:llvm.adoc[llvm]::Init :relfileprefix: ../ :mrdocs: Represents a TableGen initializer value. == Synopsis Declared in `<llvm/TableGen/Record.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Init; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/Init/2constructor-0f.adoc[`Init`] [.small]#[constructor]# [.small]#[deleted]# | Copying an Init is not supported. | xref:llvm/Init/2destructor.adoc[`~Init`] [.small]#[destructor]# [.small]#[virtual]# | Destroy this initializer. | xref:llvm/Init/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Assigning an Init is not supported. | xref:llvm/Init/convertInitializerBitRange.adoc[`convertInitializerBitRange`] [.small]#[virtual]# | Select a bit range from this initializer. | xref:llvm/Init/convertInitializerTo.adoc[`convertInitializerTo`] [.small]#[virtual]# | Convert this initializer to `Ty.` | xref:llvm/Init/dump.adoc[`dump`] | Debugging method that may be called through a debugger; just invokes print on stderr. | xref:llvm/Init/getAsString.adoc[`getAsString`] [.small]#[virtual]# | Convert this value to a literal form. | xref:llvm/Init/getAsUnquotedString.adoc[`getAsUnquotedString`] [.small]#[virtual]# | Convert this value to a literal form, without adding quotes around a string. | xref:llvm/Init/getBit.adoc[`getBit`] [.small]#[virtual]# | Get the `Init` value of the specified bit. | xref:llvm/Init/getCastTo.adoc[`getCastTo`] [.small]#[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. | xref:llvm/Init/getFieldType.adoc[`getFieldType`] [.small]#[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. | xref:llvm/Init/getKind.adoc[`getKind`] | Get the kind (type) of the value. | xref:llvm/Init/getRecordKeeper.adoc[`getRecordKeeper`] | Get the record keeper that initialized this Init. | xref:llvm/Init/isComplete.adoc[`isComplete`] [.small]#[virtual]# | Is this a complete value with no unset (uninitialized) subvalues? | xref:llvm/Init/isConcrete.adoc[`isConcrete`] [.small]#[virtual]# | Is this a concrete and fully resolved value without any references or stuck operations? Unset values are concrete. | xref:llvm/Init/print.adoc[`print`] | Print this value. | xref:llvm/Init/resolveReferences.adoc[`resolveReferences`] [.small]#[virtual]# | Resolve references in this initializer. |=== == Protected Enums [cols="1,4"] |=== | Name| Description | xref:llvm/Init/InitKind.adoc[`InitKind`] | Discriminator enum (for isa<>, dyn_cast<>, et al.) |=== == Protected Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/Init/2constructor-04.adoc[`Init`] [.small]#[constructor]# | Construct an initializer of kind `K` with opcode `Opc.` |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/Init/Opc.adoc[`Opc`] | Stores the opcode for unary, binary, and ternary operation initializers. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:llvm/ArgumentInit.adoc[`ArgumentInit`] | Represents a positional or named TableGen argument. | xref:llvm/TypedInit.adoc[`TypedInit`] | This is the common superclass of types that have a specific, explicit type, stored in ValueTy. | xref:llvm/UnsetInit.adoc[`UnsetInit`] | '?' ‐ Represents an uninitialized value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#