[#llvm-ListInit] = xref:llvm.adoc[llvm]::ListInit :relfileprefix: ../ :mrdocs: Represents an initializer containing a list of values. == Synopsis Declared in `<llvm/TableGen/Record.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ListInit final : public xref:llvm/TypedInit.adoc[TypedInit] , public xref:llvm/FoldingSetNode.adoc[FoldingSetNode] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:llvm/TypedInit.adoc[TypedInit]` | This is the common superclass of types that have a specific, explicit type, stored in ValueTy. | `xref:llvm/FoldingSetNode.adoc[FoldingSetNode]` | Convenience alias for the base node type stored in a folding set. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:llvm/ListInit/const_iterator.adoc[`const_iterator`] | Iterator over the list elements. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ListInit/2constructor-00.adoc[`ListInit`] [.small]#[constructor]# [.small]#[deleted]# | Deleted copy constructor. | xref:llvm/Init/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Assigning an Init is not supported. | xref:llvm/ListInit/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Deleted copy‐assignment operator. | xref:llvm/TypedInit/operator_assign-02.adoc[`operator=`] [.small]#[deleted]# | Assigning a TypedInit is not supported. | xref:llvm/ListInit/Profile.adoc[`Profile`] | Add this initializer to `ID.` | xref:llvm/ListInit/begin.adoc[`begin`] | Return an iterator to the first element. | xref:llvm/TypedInit/convertInitializerBitRange.adoc[`convertInitializerBitRange`] [.small]#[virtual]# | Return the bits selected by `Bits.` | xref:llvm/ListInit/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/ListInit/empty.adoc[`empty`] | Return whether the list is empty. | xref:llvm/ListInit/end.adoc[`end`] | Return an iterator past the last element. | xref:llvm/ListInit/getAsString.adoc[`getAsString`] [.small]#[virtual]# | Return this initializer as TableGen source text. | xref:llvm/Init/getAsUnquotedString.adoc[`getAsUnquotedString`] [.small]#[virtual]# | Convert this value to a literal form, without adding quotes around a string. | xref:llvm/ListInit/getBit.adoc[`getBit`] [.small]#[virtual]# | Return the bit at index `Bit.` | xref:llvm/TypedInit/getCastTo.adoc[`getCastTo`] [.small]#[virtual]# | Return this initializer cast to `Ty.` | xref:llvm/ListInit/getElement.adoc[`getElement`] | Return the element at index `Idx.` | xref:llvm/ListInit/getElementAsRecord.adoc[`getElementAsRecord`] | Return the element at `Idx` as a record. | xref:llvm/ListInit/getElementType.adoc[`getElementType`] | Return the type of each list element. | xref:llvm/ListInit/getElements.adoc[`getElements`] | Return the list elements. | xref:llvm/TypedInit/getFieldType.adoc[`getFieldType`] [.small]#[virtual]# | This method 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/TypedInit/getRecordKeeper.adoc[`getRecordKeeper`] | Get the record keeper that initialized this Init. | xref:llvm/TypedInit/getType.adoc[`getType`] | Get the type of the Init as a RecTy. | xref:llvm/ListInit/getValues.adoc[`getValues`] [.small]#[deprecated]# | Return the list elements. | xref:llvm/ListInit/isComplete.adoc[`isComplete`] [.small]#[virtual]# | Return whether every element is complete. | xref:llvm/ListInit/isConcrete.adoc[`isConcrete`] [.small]#[virtual]# | Return whether every element is concrete. | xref:llvm/ListInit/operator_del.adoc[`operator delete`] | Deallocate this trailing‐object initializer without sized deallocation. | xref:llvm/Init/print.adoc[`print`] | Print this value. | xref:llvm/ListInit/resolveReferences.adoc[`resolveReferences`] [.small]#[virtual]# | Resolve variable references using `R.` | xref:llvm/ListInit/size.adoc[`size`] | Return the number of elements. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/ListInit/classof.adoc[`classof`] | Return true if `I` is a ListInit. | xref:llvm/ListInit/get.adoc[`get`] | Return a list initializer for `Range` with element type `EltTy.` |=== == Protected Enums [cols="1,4"] |=== | Name| Description | xref:llvm/Init/InitKind.adoc[`InitKind`] | Discriminator enum (for isa<>, dyn_cast<>, et al.) |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/Init/Opc.adoc[`Opc`] | Stores the opcode for unary, binary, and ternary operation initializers. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:llvm/TrailingObjects.adoc[llvm::TrailingObjects]` | See the file comment for details on the usage of the TrailingObjects type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#