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
198718a6
Commit
198718a6
authored
Sep 10, 2010
by
Matthias Braun
Browse files
no need for an explicit lower_mode_b pass, it should only be invoked by the backend
[r27990]
parent
74c0b452
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/lowering.h
View file @
198718a6
...
...
@@ -286,17 +286,6 @@ typedef struct lower_mode_b_config_t {
FIRM_API
void
ir_lower_mode_b
(
ir_graph
*
irg
,
const
lower_mode_b_config_t
*
config
);
/**
* Creates an ir_graph pass for ir_lower_mode_b().
*
* @param name the name of this pass or NULL
* @param config configuration for mode_b lowerer
*
* @return the newly created ir_graph pass
*/
FIRM_API
ir_graph_pass_t
*
ir_lower_mode_b_pass
(
const
char
*
name
,
const
lower_mode_b_config_t
*
config
);
/**
* Used as callback, whenever a lowerable mux is found. The return value
* indicates, whether the mux should be lowered. This may be used, to lower
...
...
ir/lower/lower_mode_b.c
View file @
198718a6
...
...
@@ -441,29 +441,3 @@ void ir_lower_mode_b(ir_graph *irg, const lower_mode_b_config_t *nconfig)
set_irg_outs_inconsistent
(
irg
);
}
}
struct
pass_t
{
ir_graph_pass_t
pass
;
const
lower_mode_b_config_t
*
config
;
};
/**
* Wrapper to run ir_lower_mode_b() as an ir_graph pass
*/
static
int
pass_wrapper
(
ir_graph
*
irg
,
void
*
context
)
{
struct
pass_t
*
pass
=
context
;
ir_lower_mode_b
(
irg
,
pass
->
config
);
return
0
;
}
ir_graph_pass_t
*
ir_lower_mode_b_pass
(
const
char
*
name
,
const
lower_mode_b_config_t
*
config
)
{
struct
pass_t
*
pass
=
XMALLOCZ
(
struct
pass_t
);
pass
->
config
=
config
;
return
def_graph_pass_constructor
(
&
pass
->
pass
,
name
?
name
:
"lower_mode_b"
,
pass_wrapper
);
}
Write
Preview
Supports
Markdown
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