-void be_node_init(void) {
- static int inited = 0;
-
- if(inited)
- return;
-
- inited = 1;
-
- /* Acquire all needed opcodes. */
- op_be_Spill = new_ir_op(beo_Spill, "be_Spill", op_pin_state_pinned, N, oparity_unary, 0, sizeof(be_frame_attr_t), &be_node_op_ops);
- op_be_Reload = new_ir_op(beo_Reload, "be_Reload", op_pin_state_pinned, N, oparity_zero, 0, sizeof(be_frame_attr_t), &be_node_op_ops);
- op_be_Perm = new_ir_op(beo_Perm, "be_Perm", op_pin_state_pinned, N, oparity_variable, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_MemPerm = new_ir_op(beo_MemPerm, "be_MemPerm", op_pin_state_pinned, N, oparity_variable, 0, sizeof(be_memperm_attr_t), &be_node_op_ops);
- op_be_Copy = new_ir_op(beo_Copy, "be_Copy", op_pin_state_floats, N, oparity_unary, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_Keep = new_ir_op(beo_Keep, "be_Keep", op_pin_state_pinned, K, oparity_dynamic, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_CopyKeep = new_ir_op(beo_CopyKeep, "be_CopyKeep", op_pin_state_pinned, K, oparity_variable, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_Call = new_ir_op(beo_Call, "be_Call", op_pin_state_pinned, F|M, oparity_variable, 0, sizeof(be_call_attr_t), &be_node_op_ops);
- op_be_Return = new_ir_op(beo_Return, "be_Return", op_pin_state_pinned, X, oparity_dynamic, 0, sizeof(be_return_attr_t), &be_node_op_ops);
- op_be_AddSP = new_ir_op(beo_AddSP, "be_AddSP", op_pin_state_pinned, N, oparity_unary, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_SubSP = new_ir_op(beo_SubSP, "be_SubSP", op_pin_state_pinned, N, oparity_unary, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_IncSP = new_ir_op(beo_IncSP, "be_IncSP", op_pin_state_pinned, N, oparity_unary, 0, sizeof(be_incsp_attr_t), &be_node_op_ops);
- op_be_RegParams = new_ir_op(beo_RegParams, "be_RegParams", op_pin_state_pinned, N, oparity_zero, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_FrameAddr = new_ir_op(beo_FrameAddr, "be_FrameAddr", op_pin_state_floats, N, oparity_unary, 0, sizeof(be_frame_attr_t), &be_node_op_ops);
- op_be_Barrier = new_ir_op(beo_Barrier, "be_Barrier", op_pin_state_pinned, N, oparity_dynamic, 0, sizeof(be_node_attr_t), &be_node_op_ops);
- op_be_Unwind = new_ir_op(beo_Unwind, "be_Unwind", op_pin_state_pinned, X, oparity_zero, 0, sizeof(be_node_attr_t), &be_node_op_ops);
-
- set_op_tag(op_be_Spill, &be_node_tag);
- op_be_Spill->ops.node_cmp_attr = FrameAddr_cmp_attr;
- set_op_tag(op_be_Reload, &be_node_tag);
- op_be_Reload->ops.node_cmp_attr = FrameAddr_cmp_attr;
- set_op_tag(op_be_Perm, &be_node_tag);
- op_be_Perm->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_MemPerm, &be_node_tag);
- op_be_MemPerm->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_Copy, &be_node_tag);
- op_be_Copy->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_Keep, &be_node_tag);
- op_be_Keep->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_CopyKeep, &be_node_tag);
- op_be_CopyKeep->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_Call, &be_node_tag);
- op_be_Call->ops.node_cmp_attr = Call_cmp_attr;
- set_op_tag(op_be_Return, &be_node_tag);
- op_be_Return->ops.node_cmp_attr = Return_cmp_attr;
- set_op_tag(op_be_AddSP, &be_node_tag);
- op_be_AddSP->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_SubSP, &be_node_tag);
- op_be_SubSP->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_IncSP, &be_node_tag);
- op_be_IncSP->ops.node_cmp_attr = IncSP_cmp_attr;
- set_op_tag(op_be_RegParams, &be_node_tag);
- op_be_RegParams->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_FrameAddr, &be_node_tag);
- op_be_FrameAddr->ops.node_cmp_attr = FrameAddr_cmp_attr;
- set_op_tag(op_be_Barrier, &be_node_tag);
- op_be_Barrier->ops.node_cmp_attr = node_cmp_attr;
- set_op_tag(op_be_Unwind, &be_node_tag);
- op_be_Unwind->ops.node_cmp_attr = node_cmp_attr;