[#llvm-BinOpInit] = xref:llvm.adoc[llvm]::BinOpInit :relfileprefix: ../ :mrdocs: Represents a binary initializer operator. == Synopsis Declared in `<llvm/TableGen/Record.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class BinOpInit final : public xref:llvm/OpInit.adoc[OpInit] , public xref:llvm/FoldingSetNode.adoc[FoldingSetNode] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:llvm/OpInit.adoc[OpInit]` | Base class for initializer operators. | `xref:llvm/FoldingSetNode.adoc[FoldingSetNode]` | Convenience alias for the base node type stored in a folding set. |=== == Enums [cols="1,4"] |=== | Name| Description | xref:llvm/BinOpInit/BinaryOp.adoc[`BinaryOp`] | Enumerates binary initializer operations. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/BinOpInit/2constructor.adoc[`BinOpInit`] [.small]#[constructor]# [.small]#[deleted]# | Deleted copy constructor. | xref:llvm/BinOpInit/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Deleted copy‐assignment operator. | xref:llvm/Init/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Assigning an Init is not supported. | xref:llvm/OpInit/operator_assign-04.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/BinOpInit/CompareInit.adoc[`CompareInit`] | Compare `LHS` and `RHS` using operation `Opc.` | xref:llvm/BinOpInit/Fold.adoc[`Fold`] | Fold this initializer when possible. | xref:llvm/BinOpInit/Profile.adoc[`Profile`] | Add this initializer to `ID.` | xref:llvm/TypedInit/convertInitializerBitRange.adoc[`convertInitializerBitRange`] [.small]#[virtual]# | Return the bits selected by `Bits.` | xref:llvm/TypedInit/convertInitializerTo.adoc[`convertInitializerTo`] [.small]#[virtual]# | Return this initializer converted to `Ty.` | xref:llvm/Init/dump.adoc[`dump`] | Debugging method that may be called through a debugger; just invokes print on stderr. | xref:llvm/BinOpInit/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/OpInit/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/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/BinOpInit/getLHS.adoc[`getLHS`] | Return the left operand. | xref:llvm/BinOpInit/getOpcode.adoc[`getOpcode`] | Return the binary operation. | xref:llvm/BinOpInit/getRHS.adoc[`getRHS`] | Return the right operand. | 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/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/BinOpInit/resolveReferences.adoc[`resolveReferences`] [.small]#[virtual]# | Resolve variable references using `R.` |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/BinOpInit/classof.adoc[`classof`] | Return true if `I` is a BinOpInit. | xref:llvm/BinOpInit/get.adoc[`get`] | Return a binary operator initializer. | xref:llvm/BinOpInit/getListConcat.adoc[`getListConcat`] | Return a list‐concatenation initializer. | xref:llvm/BinOpInit/getStrConcat.adoc[`getStrConcat`] | Return a string‐concatenation initializer. |=== == 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#