src/lima/gp_ir/block.c
// Update any state necessary when inserting a root node
// Currently, just updates register defs if necessary
Update any state necessary when inserting a root node
Currently, just updates register defs if necessary
Update any state necessary when inserting a root node Currently just updates register defs if necessary
static void block_insert_helper(lima_gp_ir_root_node_t* node)
{
	if (node->node.op == lima_gp_ir_op_store_reg)
	{
		lima_gp_ir_store_reg_node_t* store_reg_node =
			gp_ir_node_to_store_reg(node);
		lima_gp_ir_reg_t* reg = store_reg_node->reg;
		ptrset_add(&reg->defs, node);
	}
}
static void block_insert_helper ( lima_gp_ir_root_node_t * node ) { if ( node -> node . op == lima_gp_ir_op_store_reg ) { lima_gp_ir_store_reg_node_t * store_reg_node = gp_ir_node_to_store_reg ( node ) ; lima_gp_ir_reg_t * reg = store_reg_node -> reg ; ptrset_add ( & reg -> defs , node ) ; } }
Update any state necessary when inserting a root node
Currently, just updates register defs if necessary
Update any state necessary when inserting a root node Currently just updates register defs if necessary