* If the node returns a tuple (mode_T) then the proj's
* will be asked for this information.
*/
-static const
-arch_register_req_t *TEMPLATE_get_irn_reg_req(const void *self,
- const ir_node *node, int pos) {
+static const arch_register_req_t *TEMPLATE_get_irn_reg_req(const ir_node *node,
+ int pos)
+{
long node_pos = pos == -1 ? 0 : pos;
ir_mode *mode = get_irn_mode(node);
- (void) self;
if (mode == mode_T || mode == mode_M) {
return arch_no_register_req;
return arch_no_register_req;
}
-static void TEMPLATE_set_irn_reg(const void *self, ir_node *irn, const arch_register_t *reg)
+static void TEMPLATE_set_irn_reg(ir_node *irn, const arch_register_t *reg)
{
int pos = 0;
- (void) self;
if (is_Proj(irn)) {
pos = TEMPLATE_translate_proj_pos(irn);
}
}
-static
-const arch_register_t *TEMPLATE_get_irn_reg(const void *self,
- const ir_node *irn)
+static const arch_register_t *TEMPLATE_get_irn_reg(const ir_node *irn)
{
int pos = 0;
const arch_register_t *reg = NULL;
- (void) self;
if (is_Proj(irn)) {
pos = TEMPLATE_translate_proj_pos(irn);
return reg;
}
-static arch_irn_class_t TEMPLATE_classify(const void *self, const ir_node *irn) {
+static arch_irn_class_t TEMPLATE_classify(const ir_node *irn)
+{
irn = skip_Proj_const(irn);
- (void) self;
if (is_cfop(irn)) {
return arch_irn_class_branch;
return 0;
}
-static arch_irn_flags_t TEMPLATE_get_flags(const void *self, const ir_node *irn) {
+static arch_irn_flags_t TEMPLATE_get_flags(const ir_node *irn)
+{
irn = skip_Proj_const(irn);
- (void) self;
if (is_TEMPLATE_irn(irn)) {
return get_TEMPLATE_flags(irn);
return 0;
}
-static ir_entity *TEMPLATE_get_frame_entity(const void *self, const ir_node *node) {
- (void) self;
+static ir_entity *TEMPLATE_get_frame_entity(const ir_node *node)
+{
(void) node;
/* TODO: return the ir_entity assigned to the frame */
return NULL;
}
-static void TEMPLATE_set_frame_entity(const void *self, ir_node *node, ir_entity *ent) {
- (void) self;
+static void TEMPLATE_set_frame_entity(ir_node *node, ir_entity *ent)
+{
(void) node;
(void) ent;
/* TODO: set the ir_entity assigned to the frame */
* This function is called by the generic backend to correct offsets for
* nodes accessing the stack.
*/
-static void TEMPLATE_set_frame_offset(const void *self, ir_node *irn, int offset) {
- (void) self;
+static void TEMPLATE_set_frame_offset(ir_node *irn, int offset)
+{
(void) irn;
(void) offset;
/* TODO: correct offset if irn accesses the stack */
}
-static int TEMPLATE_get_sp_bias(const void *self, const ir_node *irn) {
- (void) self;
+static int TEMPLATE_get_sp_bias(const ir_node *irn)
+{
(void) irn;
return 0;
}