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
4f93012a
Commit
4f93012a
authored
Oct 05, 2006
by
Christian Würdig
Browse files
fixed missing include
added comments (especially for endif)
parent
d2d47d4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/beblocksched.c
View file @
4f93012a
...
...
@@ -3,11 +3,11 @@
* Date: 27.09.2006
* Copyright: (c) Universitaet Karlsruhe
* License: This file is protected by GPL - GNU GENERAL PUBLIC LICENSE.
*
*
CVS-Id: $Id$
*/
#ifdef HAVE_CONFIG_H
#include
"config.h"
#endif
#endif
/* HAVE_CONFIG_H */
#include
"beblocksched.h"
...
...
@@ -28,12 +28,12 @@
#include
<libcore/lc_opts.h>
#include
<libcore/lc_opts_enum.h>
#include
<libcore/lc_timing.h>
#endif
#endif
/* WITH_LIBCORE */
#ifdef WITH_ILP
#include
<lpp/lpp.h>
#include
<lpp/lpp_net.h>
#endif
#endif
/* WITH_ILP */
typedef
enum
_blocksched_algos_t
{
BLOCKSCHED_NAIV
,
BLOCKSCHED_EXTBB
,
BLOCKSCHED_GREEDY
,
BLOCKSCHED_ILP
...
...
@@ -47,7 +47,7 @@ static const lc_opt_enum_int_items_t blockschedalgo_items[] = {
{
"greedy"
,
BLOCKSCHED_GREEDY
},
#ifdef WITH_ILP
{
"ilp"
,
BLOCKSCHED_ILP
},
#endif
#endif
/* WITH_ILP */
{
NULL
,
0
}
};
...
...
@@ -56,7 +56,7 @@ static lc_opt_enum_int_var_t algo_var = {
};
static
const
lc_opt_table_entry_t
be_blocksched_options
[]
=
{
LC_OPT_ENT_ENUM_INT
(
"algo"
,
"the block scheduling algorithm"
,
&
algo_var
),
LC_OPT_ENT_ENUM_INT
(
"algo"
,
"the block scheduling algorithm
(naiv, extbb, greedy, ilp)
"
,
&
algo_var
),
{
NULL
}
};
...
...
@@ -569,7 +569,7 @@ static ir_node **create_block_schedule_ilp(ir_graph *irg, ir_exec_freq *execfreq
return
block_list
;
}
#endif
#endif
/* WITH_ILP */
/*
* _____ _ ____ ____
...
...
@@ -688,7 +688,7 @@ void be_block_schedule_register_options(lc_opt_entry_t *grp)
lc_opt_add_table
(
blocksched_grp
,
be_blocksched_options
);
}
#endif
#endif
/* WITH_LIBCORE */
ir_node
**
be_create_block_schedule
(
ir_graph
*
irg
,
ir_exec_freq
*
execfreqs
)
{
...
...
@@ -701,7 +701,7 @@ ir_node **be_create_block_schedule(ir_graph *irg, ir_exec_freq *execfreqs)
#ifdef WITH_ILP
case
BLOCKSCHED_ILP
:
return
create_block_schedule_ilp
(
irg
,
execfreqs
);
#endif
#endif
/* WITH_ILP */
}
assert
(
0
&&
"unknown blocksched algo"
);
...
...
ir/be/beblocksched.h
View file @
4f93012a
...
...
@@ -6,6 +6,8 @@
#ifndef _BEBLOCKSCHED_H
#define _BEBLOCKSCHED_H
#include
"firm_config.h"
#include
"obst.h"
#include
"execfreq.h"
#include
"irnode.h"
...
...
@@ -16,6 +18,6 @@ ir_node **be_create_block_schedule(ir_graph *irg, ir_exec_freq *execfreqs);
#ifdef WITH_LIBCORE
#include
<libcore/lc_opts.h>
void
be_block_schedule_register_options
(
lc_opt_entry_t
*
grp
);
#endif
#endif
/* WITH_LIBCORE */
#endif
#endif
/* _BEBLOCKSCHED_H */
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