Commit 9af93572 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Reduce header dependencies of generated files.

parent bf6f3ad3
......@@ -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,
......
......@@ -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)
......
......@@ -14,6 +14,7 @@
#include "firm_types.h"
#include "ia32_encode.h"
#include "jit.h"
#include "x86_cc.h"
/**
* fmt parameter output
......
......@@ -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}
......
......@@ -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);
......
......@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment