Represents a binary initializer operator.

Synopsis

Declared in <llvm/TableGen/Record.h>

class BinOpInit final
    : public OpInit
    , public FoldingSetNode

Base Classes

Name

Description

OpInit

Base class for initializer operators.

FoldingSetNode

Convenience alias for the base node type stored in a folding set.

Enums

Name

Description

BinaryOp

Enumerates binary initializer operations.

Member Functions

Name

Description

BinOpInit [constructor] [deleted]

Deleted copy constructor.

operator= [deleted]

Deleted copy‐assignment operator.

operator= [deleted]

Assigning an Init is not supported.

operator= [deleted]

Deleted copy‐assignment operator.

operator= [deleted]

Assigning a TypedInit is not supported.

CompareInit

Compare LHS and RHS using operation Opc.

Fold

Fold this initializer when possible.

Profile

Add this initializer to ID.

convertInitializerBitRange [virtual]

Return the bits selected by Bits.

convertInitializerTo [virtual]

Return this initializer converted to Ty.

dump

Debugging method that may be called through a debugger; just invokes print on stderr.

getAsString [virtual]

Return this initializer as TableGen source text.

getAsUnquotedString [virtual]

Convert this value to a literal form, without adding quotes around a string.

getBit [virtual]

Return the bit at index Bit.

getCastTo [virtual]

Return this initializer cast to Ty.

getFieldType [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.

getKind

Get the kind (type) of the value.

getLHS

Return the left operand.

getOpcode

Return the binary operation.

getRHS

Return the right operand.

getRecordKeeper

Get the record keeper that initialized this Init.

getType

Get the type of the Init as a RecTy.

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 variable references using R.

Static Member Functions

Name

Description

classof

Return true if I is a BinOpInit.

get

Return a binary operator initializer.

getListConcat

Return a list‐concatenation initializer.

getStrConcat

Return a string‐concatenation initializer.

Protected Enums

Name

Description

InitKind

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

Protected Data Members

Name

Description

Opc

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

Created with MrDocs