- set be_ops only once
- do not overwrite already set be_ops
[r19742]
int cur_opcode;
static int run_once = 0;
int i;
int cur_opcode;
static int run_once = 0;
int i;
-
- /* we handle all middleend nodes as well */
- for (i = 0; i <= iro_Last; ++i) {
- ir_op *op = get_irp_opcode(i);
- op->ops.be_ops = be_ops;
- }
ENDOFMAIN
if(defined($default_op_attr_type)) {
ENDOFMAIN
if(defined($default_op_attr_type)) {
+ /* we handle all middleend nodes as well that have no other handler */
+ for (i = 0; i <= iro_Last; ++i) {
+ ir_op *op = get_irp_opcode(i);
+ if (op->ops.be_ops == NULL)
+ op->ops.be_ops = be_ops;
+ }
+
cur_opcode = get_next_ir_opcodes(iro_$arch\_last);
$arch\_opcode_start = cur_opcode;
cur_opcode = get_next_ir_opcodes(iro_$arch\_last);
$arch\_opcode_start = cur_opcode;