{
}
+static int TEMPLATE_is_mux_allowed(ir_node *sel, ir_node *mux_false,
+ ir_node *mux_true)
+{
+ (void) sel;
+ (void) mux_false;
+ (void) mux_true;
+ return false;
+}
+
/**
* Returns the libFirm configuration parameter for this backend.
*/
0, /* 0: little-endian, 1: big-endian */
TEMPLATE_lower_for_target, /* lowering for target */
NULL, /* architecture dependent settings, will be set later */
- NULL, /* parameter for if conversion */
+ TEMPLATE_is_mux_allowed, /* parameter for if conversion */
NULL, /* float arithmetic mode */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
{
}
+static int amd64_is_mux_allowed(ir_node *sel, ir_node *mux_false,
+ ir_node *mux_true)
+{
+ (void) sel;
+ (void) mux_false;
+ (void) mux_true;
+ return false;
+}
+
/**
* Returns the libFirm configuration parameter for this backend.
*/
0, /* little endian */
amd64_lower_for_target, /* lowering callback */
NULL, /* will be set later */
- NULL, /* parameter for if conversion */
+ amd64_is_mux_allowed, /* parameter for if conversion */
NULL, /* float arithmetic mode */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
(void) sel;
(void) mux_false;
(void) mux_true;
-
- return 0;
+ return false;
}
static asm_constraint_flags_t arm_parse_asm_constraint(const char **c)
}
}
+static int sparc_is_mux_allowed(ir_node *sel, ir_node *mux_false,
+ ir_node *mux_true)
+{
+ (void) sel;
+ (void) mux_false;
+ (void) mux_true;
+ return false;
+}
+
/**
* Returns the libFirm configuration parameter for this backend.
*/
1, /* big endian */
sparc_lower_for_target, /* lowering callback */
&arch_dep, /* will be set later */
- NULL, /* parameter for if conversion */
+ sparc_is_mux_allowed, /* parameter for if conversion */
NULL, /* float arithmetic mode */
0, /* no trampoline support: size 0 */
0, /* no trampoline support: align 0 */
DEBUG_ONLY(static firm_dbg_module_t *dbg);
-/**
- * Default callback for Mux creation: don't allow any Mux nodes
- */
-static int default_allow_ifconv(ir_node *sel, ir_node *mux_false,
- ir_node *mux_true)
-{
- (void) sel;
- (void) mux_false;
- (void) mux_true;
- return 0;
-}
-
/**
* Returns non-zero if a Block can be emptied.
*
const backend_params *be_params = be_get_backend_param();
/* get the parameters */
- if (be_params->allow_ifconv != NULL)
- env.allow_ifconv = be_params->allow_ifconv;
- else
- env.allow_ifconv = default_allow_ifconv;
- env.changed = false;
+ env.allow_ifconv = be_params->allow_ifconv;
+ env.changed = false;
FIRM_DBG_REGISTER(dbg, "firm.opt.ifconv");