A DAG IR call. More...
#include <mdl_generated_dag.h>
Classes | |
struct | Call_argument |
A simple value helper class, a pair of an argument expression and a parameter name. More... | |
Public Member Functions | |
virtual char const * | get_name () const =0 |
Get the signature of the called function. More... | |
virtual int | get_argument_count () const =0 |
Get the number of arguments. More... | |
virtual char const * | get_parameter_name (int index) const =0 |
Get the name of the parameter corresponding to the argument at position index. More... | |
virtual DAG_node const * | get_argument (int index) const =0 |
Get the argument at position index. More... | |
virtual DAG_node const * | get_argument (char const *name) const =0 |
Get the argument for parameter name. More... | |
virtual IDefinition::Semantics | get_semantic () const =0 |
Get the semantic of the called function if known. More... | |
virtual void | set_argument (int index, DAG_node const *arg)=0 |
Set the argument expression of a call. More... | |
virtual size_t | get_name_hash () const =0 |
Get the name hash. More... | |
Public Member Functions inherited from mi::mdl::DAG_node | |
virtual Kind | get_kind () const =0 |
Get the kind of this DAG IR node. More... | |
virtual IType const * | get_type () const =0 |
Get the type of this DAG IR node. More... | |
virtual size_t | get_id () const =0 |
Get the unique ID of this DAG IR node. More... | |
Static Public Attributes | |
static Kind const | s_kind = EK_CALL |
The kind of this subclass. More... | |
Additional Inherited Members | |
Public Types inherited from mi::mdl::DAG_node | |
enum | Kind { EK_CONSTANT , EK_TEMPORARY , EK_CALL , EK_PARAMETER } |
The possible kinds of DAG IR nodes. More... | |
A DAG IR call.
This node represents calls to callable entities inside the DAG Intermediate Representation.
|
pure virtual |
Get the argument for parameter name.
name | The name of the parameter corresponding to the argument. |
|
pure virtual |
Get the argument at position index.
index | The index of the argument. |
|
pure virtual |
Get the number of arguments.
|
pure virtual |
Get the signature of the called function.
|
pure virtual |
Get the name hash.
|
pure virtual |
Get the name of the parameter corresponding to the argument at position index.
index | The index of the argument. |
|
pure virtual |
Get the semantic of the called function if known.
|
pure virtual |
Set the argument expression of a call.
index | the index of the argument expression to set |
arg | the new argument |