#include "irreflect.h"
+#include "bearch_firm.h"
+
#define N_REGS 3
static arch_register_t datab_regs[N_REGS];
static ir_op *op_push;
static ir_op *op_imm;
-typedef struct {
- enum { imm_Const, imm_SymConst } tp;
- union {
- tarval *tv;
- entity *ent;
- } data;
-} imm_attr_t;
-
#define N_CLASSES \
(sizeof(reg_classes) / sizeof(reg_classes[0]))
int push_opc = get_next_ir_opcode();
op_push = new_ir_op(push_opc, "Push",
- op_pin_state_pinned, 0, oparity_binary, 0, 0);
+ op_pin_state_pinned, 0, oparity_binary, 0, 0, NULL);
sig = rflct_signature_allocate(1, 3);
rflct_signature_set_arg(sig, 0, 0, "Store", RFLCT_MC(Mem), 0, 0);
int imm_opc = get_next_ir_opcode();
op_imm = new_ir_op(imm_opc, "Imm",
- op_pin_state_pinned, 0, oparity_zero, 0, sizeof(imm_attr_t));
+ op_pin_state_pinned, 0, oparity_zero, 0, sizeof(imm_attr_t), NULL);
sig = rflct_signature_allocate(1, 1);
rflct_signature_set_arg(sig, 0, 0, "Imm", RFLCT_MC(Data), 0, 0);