294 #ifndef FIRM_IR_IRCONS_H
295 #define FIRM_IR_IRCONS_H
297 #include "firm_types.h"
457 size_t n_clobber,
ident *clobber[],
476 size_t n_clobber,
ident *clobber[],
496 size_t n_clobber,
ident *clobber[],
515 size_t n_clobber,
ident *clobber[],
ident *asm_text);
void irg_finalize_cons(ir_graph *irg)
Puts the graph into state "phase_high".
ir_node * new_rd_ASM(dbg_info *db, ir_node *block, ir_node *mem, int arity, ir_node *in[], ir_asm_constraint *inputs, size_t n_outs, ir_asm_constraint *outputs, size_t n_clobber, ident *clobber[], ident *asm_text)
Constructor for an ASM pseudo node.
ir_node * new_d_Const_long(dbg_info *db, ir_mode *mode, long value)
struct dbg_info dbg_info
Source Reference.
ir_mode * ir_guess_mode(int pos)
Try to guess the mode of a local variable.
void set_cur_block(ir_node *target)
Sets the current block in which the following constructors place the nodes they construct.
void add_immBlock_pred(ir_node *immblock, ir_node *jmp)
Add a control flow edge to an immature block.
void set_current_ir_graph(ir_graph *graph)
Sets graph which is currently constructed.
ir_node * new_immBlock(void)
Create an immature Block.
ir_node * new_r_Phi_loop(ir_node *block, int arity, ir_node *in[])
Constructor for memory Phi with keep-alive edge.
struct ir_graph ir_graph
Procedure Graph.
ir_node * new_r_DivRL(ir_node *block, ir_node *memop, ir_node *op1, ir_node *op2, ir_mode *mode, int pinned)
Constructor for a remainderless Div node.
ir_node * new_ASM(ir_node *mem, int arity, ir_node *in[], ir_asm_constraint *inputs, size_t n_outs, ir_asm_constraint *outputs, size_t n_clobber, ident *clobber[], ident *asm_text)
Constructor for an ASM pseudo node.
void set_store(ir_node *store)
Memorize a new definition of the memory state.
ir_node * new_d_immBlock(dbg_info *db)
Create an immature Block.
ir_node * new_rd_Phi_loop(dbg_info *db, ir_node *block, int arity, ir_node *in[])
Constructor for memory Phi with keep-alive edge.
ir_node * new_d_ASM(dbg_info *db, ir_node *mem, int arity, ir_node *in[], ir_asm_constraint *inputs, size_t n_outs, ir_asm_constraint *outputs, size_t n_clobber, ident *clobber[], ident *asm_text)
Constructor for an ASM pseudo node.
ir_node * new_rd_DivRL(dbg_info *db, ir_node *block, ir_node *memop, ir_node *op1, ir_node *op2, ir_mode *mode, int pinned)
Constructor for a remainderless Div node.
ir_node * new_rd_immBlock(dbg_info *db, ir_graph *irg)
Create an immature Block.
void verify_new_node(ir_node *node)
If firm is built in debug mode, verify that a newly created node is fine.
A input/output constraint attribute.
void mature_immBlock(ir_node *block)
Finalize a Block node, when all control flows are known.
ir_node * new_r_immBlock(ir_graph *irg)
Create an immature Block.
ir_node * new_d_DivRL(dbg_info *db, ir_node *memop, ir_node *op1, ir_node *op2, ir_mode *mode, int pinned)
Constructor for a remainderless Div node.
ir_graph * get_current_ir_graph(void)
Returns graph which is currently constructed.
void set_value(int pos, ir_node *value)
Memorize a new definition of a variable.
ir_node * new_r_ASM(ir_node *block, ir_node *mem, int arity, ir_node *in[], ir_asm_constraint *inputs, size_t n_outs, ir_asm_constraint *outputs, size_t n_clobber, ident *clobber[], ident *asm_text)
Constructor for an ASM pseudo node.
void set_r_value(ir_graph *irg, int pos, ir_node *value)
Sets current value of a variable in a given graph.
ir_node * get_value(int pos, ir_mode *mode)
Returns the current value of a local variable.
ir_node * new_Const_long(ir_mode *mode, long value)
Make a const from a long.
ir_node * new_Phi_loop(int arity, ir_node *in[])
Constructor for memory Phi with keep-alive edge.
void keep_alive(ir_node *ka)
keep this node alive even if End is not control-reachable from it
ir_node * new_DivRL(ir_node *memop, ir_node *op1, ir_node *op2, ir_mode *mode, int pinned)
Constructor for a remainderless Div node.
ir_graph * current_ir_graph
Global variable holding the graph which is currently constructed.
ir_node * new_rd_Const_long(dbg_info *db, ir_graph *irg, ir_mode *mode, long value)
Constructor for a Const node.
void set_r_cur_block(ir_graph *irg, ir_node *target)
Sets current block of a given graph.
ir_node * get_r_store(ir_graph *irg)
Returns current memory state for a given graph.
void ir_set_uninitialized_local_variable_func(uninitialized_local_variable_func_t *func)
Register a new callback for the case that the value of an uninitialized variable is requested...
struct ir_mode ir_mode
SSA Value mode.
struct ir_node ir_node
Procedure Graph Node.
void set_r_store(ir_graph *irg, ir_node *store)
Sets current memory state for a given graph.
ir_node * get_r_cur_block(ir_graph *irg)
Returns current block of a given graph.
const char ident
Identifier.
ir_node * uninitialized_local_variable_func_t(ir_graph *irg, ir_mode *mode, int pos)
This function is called, whenever a local variable is used before definition.
ir_node * get_store(void)
Returns the current memory state.
ir_node * new_r_Const_long(ir_graph *irg, ir_mode *mode, long value)
Constructor for a Const node.
ir_node * get_cur_block(void)
Returns the current block of the current graph.
ir_node * new_d_Phi_loop(dbg_info *db, int arity, ir_node *in[])
Constructor for memory Phi with keep-alive edge.
ir_node * get_r_value(ir_graph *irg, int pos, ir_mode *mode)
Returns the current value of a local variable in given graph.
ir_mode * ir_r_guess_mode(ir_graph *irg, int pos)
Try to guess the mode of a local variable in a given graph.