Represents a DAG initializer.

Synopsis

Declared in <llvm/TableGen/Record.h>

class DagInit final
    : public TypedInit
    , public FoldingSetNode

Description

A DAG has an operator and a possibly empty list of named arguments.

Base Classes

Name

Description

TypedInit

This is the common superclass of types that have a specific, explicit type, stored in ValueTy.

FoldingSetNode

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

Type Aliases

Name

Description

const_arg_iterator

Iterator over DAG arguments.

const_name_iterator

Iterator over DAG argument names.

Member Functions

Name

Description

DagInit [constructor] [deleted]

Deleted copy constructor.

operator= [deleted]

Deleted copy‐assignment operator.

operator= [deleted]

Assigning an Init is not supported.

operator= [deleted]

Assigning a TypedInit is not supported.

Profile

Add this initializer to ID.

arg_begin

Return an iterator to the first argument.

arg_empty

Return whether there are no arguments.

arg_end

Return an iterator past the last argument.

arg_size

Return the number of arguments.

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.

getArg

Return argument Num.

getArgAndNames

Return paired DAG arguments and names.

getArgName

Return the name of argument Num.

getArgNameStr

Return the name of argument Num as a string.

getArgNames

Return the optional DAG argument names.

getArgNo

Return the index of argument Name, if it exists.

getArgs

Return the DAG arguments.

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.

getName

Return the optional DAG operator name.

getNameStr

Return the optional DAG operator name as a string.

getNumArgs

Return the number of DAG arguments.

getOperator

Return the DAG operator.

getOperatorAsDef

Return the DAG operator as a record definition.

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]

Return whether this initializer is concrete.

name_begin

Return an iterator to the first argument name.

name_end

Return an iterator past the last argument name.

print

Print this value.

resolveReferences [virtual]

Resolve variable references using R.

Static Member Functions

Name

Description

classof

Return true if I is a DagInit.

get

Return an unnamed‐operator DAG initializer from paired arguments.

get

Return an unnamed‐operator DAG initializer.

get

Return a DAG initializer from paired arguments and names.

get

Return a DAG 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.

Friends

Name

Description

llvm::TrailingObjects

See the file comment for details on the usage of the TrailingObjects type.

Created with MrDocs