The node factory for DAG IR nodes. More...
#include <mdl_generated_dag.h>
Public Member Functions | |
virtual DAG_constant const * | create_constant (IValue const *value)=0 |
Create a constant. More... | |
virtual DAG_temporary const * | create_temporary (DAG_node const *node, int index)=0 |
Create a temporary reference. More... | |
virtual DAG_node const * | create_call (char const *signature, IDefinition::Semantics sema, DAG_call::Call_argument const call_args[], int num_call_args, IType const *ret_type)=0 |
Create a call. More... | |
virtual DAG_parameter const * | create_parameter (IType const *type, int index)=0 |
Create a parameter reference. More... | |
virtual bool | enable_cse (bool flag)=0 |
Enable common subexpression elimination. More... | |
virtual bool | enable_opt (bool flag)=0 |
Enable optimization. More... | |
virtual bool | enable_unsafe_math_opt (bool flag)=0 |
Enable unsafe math optimizations. More... | |
virtual bool | get_unsafe_math_opt () const =0 |
Return unsafe math optimization setting. More... | |
virtual IType_factory * | get_type_factory ()=0 |
Get the type factory associated with this expression factory. More... | |
virtual IValue_factory * | get_value_factory ()=0 |
Get the value factory associated with this expression factory. More... | |
The node factory for DAG IR nodes.
|
pure virtual |
Create a call.
signature | The signature of the called function. |
sema | The semantics of the called function. |
call_args | The call arguments of the called function. |
num_call_args | The number of call arguments. |
ret_type | The return type of the function. |
|
pure virtual |
Create a constant.
value | The value of the constant. |
|
pure virtual |
Create a parameter reference.
type | The type of the parameter |
index | The index of the parameter. |
|
pure virtual |
Create a temporary reference.
node | The DAG node that is "named" by this temporary. |
index | The index of the temporary. |
|
pure virtual |
Enable common subexpression elimination.
flag | If true, CSE will be enabled, else disabled. |
|
pure virtual |
Enable optimization.
flag | If true, optimizations in general will be enabled, else disabled. |
|
pure virtual |
Enable unsafe math optimizations.
flag | If true, unsafe math optimizations will be enabled, else disabled. |
|
pure virtual |
Get the type factory associated with this expression factory.
|
pure virtual |
Return unsafe math optimization setting.
|
pure virtual |
Get the value factory associated with this expression factory.