summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bemodule.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-01-04 20:12:21 +0100
committerMatthias Braun <matze@braunis.de>2017-02-20 04:48:18 +0100
commit1ffc842f8bb13ed098eeaf2382ba473f9e154466 (patch)
treecd4c1c9ca57400975db74b7212ac237166359704 /ir/be/bemodule.c
parent845e655dac11bc5eba82b9fc6d36a6f4fec23eb6 (diff)
Rework target initialization and query
- Moves machine triple handling code form cparser into libfirm - Create new APIs to set the target and query information about it - Move backend_params into the new target API - Backends initialize ir_target instead of backend_params now - Add new API to get information about the target platform: - Mangle a name for the target platform (and remove compilerlib mangling callback) - Can query size and alignment of basic C types for the platform - Move some constant target information into arch_isa_if_t (we move it to target_info_t later when we realize it needs to be dynamic) - Redo backend initialization. Examples: Simple case: Initialize for host: ir_init(); Complex case: cross-compile to sparc with PIC enabled: ir_init_library(); ir_target_set("sparc-leon-linux-gnu"); ir_target_option("pic"); ir_target_init();
Diffstat (limited to 'ir/be/bemodule.c')
-rw-r--r--ir/be/bemodule.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c
index 6d2158d..003278a 100644
--- a/ir/be/bemodule.c
+++ b/ir/be/bemodule.c
@@ -11,6 +11,7 @@
*/
#include "bemodule.h"
+#include "isas.h"
#include "util.h"
#include "xmalloc.h"
#include <stdbool.h>
@@ -27,12 +28,6 @@ struct be_module_list_entry_t {
void be_init_2addr(void);
void be_init_arch(void);
-void be_init_arch_TEMPLATE(void);
-void be_init_arch_amd64(void);
-void be_init_arch_arm(void);
-void be_init_arch_ia32(void);
-void be_init_arch_mips(void);
-void be_init_arch_sparc(void);
void be_init_blocksched(void);
void be_init_chordal(void);
void be_init_chordal_common(void);
@@ -44,7 +39,6 @@ void be_init_copynone(void);
void be_init_copyopt(void);
void be_init_daemelspill(void);
void be_init_dwarf(void);
-void be_init_gas(void);
void be_init_listsched(void);
void be_init_live(void);
void be_init_loopana(void);
@@ -83,7 +77,6 @@ void be_init_modules(void)
be_init_chordal_common();
be_init_copyopt();
be_init_dwarf();
- be_init_gas();
be_init_live();
be_init_loopana();
be_init_peephole();