projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve test
[libfirm]
/
ir
/
be
/
beschedtrivial.c
diff --git
a/ir/be/beschedtrivial.c
b/ir/be/beschedtrivial.c
index
4c03ace
..
dab5a42
100644
(file)
--- a/
ir/be/beschedtrivial.c
+++ b/
ir/be/beschedtrivial.c
@@
-18,10
+18,11
@@
*/
/**
*/
/**
- * Trivial node selector.
- * @author Christian Wuerdig
- * @date 29.08.2006
- * @cvs-id $Id$
+ * @file
+ * @brief Trivial node selector.
+ * @author Sebastian Hack
+ * @date 29.08.2006
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
@@
-29,7
+30,11
@@
#include <stdlib.h>
#include <stdlib.h>
-#include "besched_t.h"
+#include "irgraph.h"
+#include "irnode.h"
+#include "irnodeset.h"
+
+#include "bearch.h"
#include "belistsched.h"
/**
#include "belistsched.h"
/**
@@
-37,11
+42,13
@@
* Just assure that branches are executed last, otherwise select
* the first node ready.
*/
* Just assure that branches are executed last, otherwise select
* the first node ready.
*/
-static ir_node *trivial_select(void *block_env, ir_nodeset_t *ready_set, ir_nodeset_t *live_set)
+static ir_node *trivial_select(void *block_env, ir_nodeset_t *ready_set,
+ ir_nodeset_t *live_set)
{
const arch_env_t *arch_env = block_env;
ir_node *irn = NULL;
ir_nodeset_iterator_t iter;
{
const arch_env_t *arch_env = block_env;
ir_node *irn = NULL;
ir_nodeset_iterator_t iter;
+ (void) live_set;
/* assure that branches and constants are executed last */
foreach_ir_nodeset(ready_set, irn, iter) {
/* assure that branches and constants are executed last */
foreach_ir_nodeset(ready_set, irn, iter) {
@@
-57,13
+64,17
@@
static ir_node *trivial_select(void *block_env, ir_nodeset_t *ready_set, ir_node
return irn;
}
return irn;
}
-static void *trivial_init_graph(const list_sched_selector_t *vtab, const arch_env_t *arch_env, ir_graph *irg)
+static void *trivial_init_graph(const list_sched_selector_t *vtab,
+ const arch_env_t *arch_env, ir_graph *irg)
{
{
+ (void) vtab;
+ (void) irg;
return (void *)arch_env;
}
return (void *)arch_env;
}
-static void *trivial_init_block(void *graph_env, ir_node *bl)
+static void *trivial_init_block(void *graph_env, ir_node *bl
ock
)
{
{
+ (void) block;
return graph_env;
}
return graph_env;
}