Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
9af93572
Commit
9af93572
authored
Mar 11, 2016
by
Christoph Mallon
Browse files
be: Reduce header dependencies of generated files.
parent
bf6f3ad3
Changes
6
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_new_nodes_t.h
View file @
9af93572
...
...
@@ -10,6 +10,8 @@
#ifndef FIRM_BE_AMD64_AMD64_NEW_NODES_T_H
#define FIRM_BE_AMD64_AMD64_NEW_NODES_T_H
#include
"amd64_nodes_attr.h"
void
amd64_dump_node
(
FILE
*
F
,
const
ir_node
*
n
,
dump_reason_t
reason
);
void
init_amd64_attributes
(
ir_node
*
node
,
arch_irn_flags_t
flags
,
...
...
ir/be/ia32/bearch_ia32_t.h
View file @
9af93572
...
...
@@ -14,6 +14,7 @@
#include
"beirg.h"
#include
"pmap.h"
#include
"x86_cconv.h"
#include
"x86_x87.h"
#ifdef NDEBUG
#define SET_IA32_ORIG_NODE(n, o) ((void)(n), (void)(o), (void)0)
...
...
ir/be/ia32/ia32_emitter.h
View file @
9af93572
...
...
@@ -14,6 +14,7 @@
#include
"firm_types.h"
#include
"ia32_encode.h"
#include
"jit.h"
#include
"x86_cc.h"
/**
* fmt parameter output
...
...
ir/be/scripts/generate_emitter.pl
View file @
9af93572
...
...
@@ -104,10 +104,10 @@ close($out_h);
my
$out_c
=
create_with_header
("
$target_dir
/gen_
${arch}
_emitter.c
",
"
Generated functions to emit code for assembler ir nodes.
");
print
$out_c
<<EOF;
#include "beemithlp.h"
#include "beemitter.h"
#include "gen_${arch}_emitter.h"
#include "${arch}_new_nodes.h"
#include "beemithlp.h"
#include "gen_${arch}_new_nodes.h"
#include "${arch}_emitter.h"
${obst_func}
...
...
ir/be/scripts/generate_new_opcodes.pl
View file @
9af93572
...
...
@@ -533,10 +533,11 @@ $d //= '\0';
open
(
my
$out_c
,
"
>
",
$target_c
)
//
die
("
Fatal error: Could not open
$target_c
, reason: $!
\n
");
print
$out_c
<<EOF;
#include "gen_${arch}_new_nodes.h"
#include "benode.h"
#include "bearch_${arch}_t.h"
#include "gen_${arch}_regalloc_if.h"
#include "gen_${arch}_new_nodes.h"
#include "${arch}_new_nodes_t.h"
#include "fourcc.h"
#include "irgopt.h"
...
...
@@ -612,6 +613,7 @@ print $out_h <<EOF;
#include "be_types.h"
#include "irnode_t.h"
#include "${arch}_nodes_attr.h"
$obst_enum_op
int is_${arch}_irn(const ir_node *node);
...
...
ir/be/scripts/generate_regalloc_if.pl
View file @
9af93572
...
...
@@ -194,7 +194,6 @@ print OUT <<EOF;
#ifndef FIRM_BE_${archuc}_GEN_${archuc}_REGALLOC_IF_H
#define FIRM_BE_${archuc}_GEN_${archuc}_REGALLOC_IF_H
#include "${arch}_nodes_attr.h"
#include "bearch.h"
/** global register indices for ${arch} registers */
...
...
@@ -241,6 +240,7 @@ print OUT <<EOF;
* \$date $creation_time
*/
#include "gen_${arch}_regalloc_if.h"
#include "bearch_${arch}_t.h"
${single_constraints}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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