Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
49b485b0
Commit
49b485b0
authored
Nov 19, 2014
by
Matthias Braun
Browse files
TEMPLATE: No need for custom gen_Proj() anymore
parent
b6938ee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/TEMPLATE/TEMPLATE_transform.c
View file @
49b485b0
...
...
@@ -258,16 +258,6 @@ static ir_node *gen_Proj_Start(ir_node *node)
panic
(
"unexpected Start proj %u"
,
pn
);
}
static
ir_node
*
gen_Proj
(
ir_node
*
node
)
{
ir_node
*
pred
=
get_Proj_pred
(
node
);
switch
(
get_irn_opcode
(
pred
))
{
case
iro_Start
:
return
gen_Proj_Start
(
node
);
default:
panic
(
"code selection can't handle Proj after %+F"
,
pred
);
}
}
static
void
TEMPLATE_register_transformers
(
void
)
{
be_start_transform_setup
();
...
...
@@ -283,7 +273,6 @@ static void TEMPLATE_register_transformers(void)
be_set_transform_function
(
op_Mul
,
gen_Mul
);
be_set_transform_function
(
op_Not
,
gen_Not
);
be_set_transform_function
(
op_Or
,
gen_Or
);
be_set_transform_function
(
op_Proj
,
gen_Proj
);
be_set_transform_function
(
op_Phi
,
gen_Phi
);
be_set_transform_function
(
op_Return
,
gen_Return
);
be_set_transform_function
(
op_Shl
,
gen_Shl
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment