libFirm
|
performs a backend-specific builtin. More...
Enumerations | |
enum | ir_builtin_kind { ir_bk_trap, ir_bk_debugbreak, ir_bk_return_address, ir_bk_frame_address, ir_bk_prefetch, ir_bk_ffs, ir_bk_clz, ir_bk_ctz, ir_bk_popcount, ir_bk_parity, ir_bk_bswap, ir_bk_inport, ir_bk_outport, ir_bk_inner_trampoline, ir_bk_last = ir_bk_inner_trampoline } |
Supported libFirm builtins. More... | |
enum | n_Builtin { n_Builtin_mem, n_Builtin_max = n_Builtin_mem } |
Input numbers for Builtin node. More... | |
enum | pn_Builtin { pn_Builtin_M, pn_Builtin_max = pn_Builtin_M } |
Projection numbers for result of Builtin node (use for Proj nodes) More... |
Functions | |
ir_node ** | get_Builtin_param_arr (ir_node *node) |
Returns the parameter inputs of Builtin node node as array. | |
int | get_Builtin_n_params (const ir_node *node) |
Returns the number of parameters of a Builtin. | |
ir_node * | get_Builtin_param (const ir_node *node, int pos) |
Returns the Builtin parameter at position pos. | |
void | set_Builtin_param (ir_node *node, int pos, ir_node *param) |
Sets the Builtin parameter at position pos. | |
ir_node * | new_rd_Builtin (dbg_info *dbgi, ir_node *block, ir_node *irn_mem, int arity, ir_node *const *in, ir_builtin_kind kind, ir_type *type) |
Construct a Builtin node. | |
ir_node * | new_r_Builtin (ir_node *block, ir_node *irn_mem, int arity, ir_node *const *in, ir_builtin_kind kind, ir_type *type) |
Construct a Builtin node. | |
ir_node * | new_d_Builtin (dbg_info *dbgi, ir_node *irn_mem, int arity, ir_node *const *in, ir_builtin_kind kind, ir_type *type) |
Construct a Builtin node. | |
ir_node * | new_Builtin (ir_node *irn_mem, int arity, ir_node *const *in, ir_builtin_kind kind, ir_type *type) |
Construct a Builtin node. | |
int | is_Builtin (const ir_node *node) |
Test if node is a Builtin. | |
ir_node * | get_Builtin_mem (const ir_node *node) |
Returns mem input of a Builtin node. | |
void | set_Builtin_mem (ir_node *node, ir_node *mem) |
Sets mem input of a Builtin node. | |
ir_builtin_kind | get_Builtin_kind (const ir_node *node) |
Returns kind attribute of a Builtin node. | |
void | set_Builtin_kind (ir_node *node, ir_builtin_kind kind) |
Sets kind attribute of a Builtin node. | |
ir_type * | get_Builtin_type (const ir_node *node) |
Returns type attribute of a Builtin node. | |
void | set_Builtin_type (ir_node *node, ir_type *type) |
Sets type attribute of a Builtin node. | |
ir_op * | get_op_Builtin (void) |
Returns opcode for Builtin nodes. |
Variables | |
ir_op * | op_Builtin |
Builtin opcode. |
performs a backend-specific builtin.
enum ir_builtin_kind |
Supported libFirm builtins.
Definition at line 353 of file firm_types.h.
enum pn_Builtin |
ir_builtin_kind get_Builtin_kind | ( | const ir_node * | node | ) |
Returns kind attribute of a Builtin node.
int get_Builtin_n_params | ( | const ir_node * | node | ) |
Returns the number of parameters of a Builtin.
Returns the Builtin parameter at position pos.
Returns the parameter inputs of Builtin node node
as array.
ir_op* get_op_Builtin | ( | void | ) |
Returns opcode for Builtin nodes.
int is_Builtin | ( | const ir_node * | node | ) |
Test if node is a Builtin.
ir_node* new_Builtin | ( | ir_node * | irn_mem, |
int | arity, | ||
ir_node *const * | in, | ||
ir_builtin_kind | kind, | ||
ir_type * | type | ||
) |
Construct a Builtin node.
irn_mem | memory dependency |
arity | size of additional inputs array |
in | additional inputs |
kind | kind of builtin |
type | method type for the builtin call |
ir_node* new_d_Builtin | ( | dbg_info * | dbgi, |
ir_node * | irn_mem, | ||
int | arity, | ||
ir_node *const * | in, | ||
ir_builtin_kind | kind, | ||
ir_type * | type | ||
) |
Construct a Builtin node.
dbgi | A pointer to debug information. |
irn_mem | memory dependency |
arity | size of additional inputs array |
in | additional inputs |
kind | kind of builtin |
type | method type for the builtin call |
ir_node* new_r_Builtin | ( | ir_node * | block, |
ir_node * | irn_mem, | ||
int | arity, | ||
ir_node *const * | in, | ||
ir_builtin_kind | kind, | ||
ir_type * | type | ||
) |
Construct a Builtin node.
block | The IR block the node belongs to. |
irn_mem | memory dependency |
arity | size of additional inputs array |
in | additional inputs |
kind | kind of builtin |
type | method type for the builtin call |
ir_node* new_rd_Builtin | ( | dbg_info * | dbgi, |
ir_node * | block, | ||
ir_node * | irn_mem, | ||
int | arity, | ||
ir_node *const * | in, | ||
ir_builtin_kind | kind, | ||
ir_type * | type | ||
) |
Construct a Builtin node.
dbgi | A pointer to debug information. |
block | The IR block the node belongs to. |
irn_mem | memory dependency |
arity | size of additional inputs array |
in | additional inputs |
kind | kind of builtin |
type | method type for the builtin call |
void set_Builtin_kind | ( | ir_node * | node, |
ir_builtin_kind | kind | ||
) |
Sets kind attribute of a Builtin node.
Sets the Builtin parameter at position pos.