From fd61324a4bfc64ce80b75fb055dfc8348b34d036 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Mon, 13 Mar 2006 12:09:23 +0000 Subject: [PATCH] moved typedefs to bearch_t.h added before_abi hook --- ir/be/bearch.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/ir/be/bearch.h b/ir/be/bearch.h index 578be58b8..b8f8817d1 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -24,19 +24,9 @@ #include "belistsched.h" #include "beabi_t.h" +#include "bearch_t.h" #include "be_t.h" -typedef struct _arch_register_class_t arch_register_class_t; -typedef struct _arch_register_t arch_register_t; -typedef struct _arch_isa_if_t arch_isa_if_t; -typedef struct _arch_isa_t arch_isa_t; -typedef struct _arch_env_t arch_env_t; -typedef struct _arch_irn_ops_if_t arch_irn_ops_if_t; -typedef struct _arch_irn_ops_t arch_irn_ops_t; -typedef struct _arch_irn_handler_t arch_irn_handler_t; -typedef struct _arch_code_generator_t arch_code_generator_t; -typedef struct _arch_code_generator_if_t arch_code_generator_if_t; - struct _be_node_factory_t; typedef enum _arch_register_type_t { @@ -441,6 +431,11 @@ struct _arch_code_generator_if_t { */ void *(*init)(FILE *file, const be_irg_t *birg); + /** + * Called before abi introduce. + */ + void (*before_abi)(void *self); + /** * Called, when the graph is being normalized. */ @@ -475,6 +470,7 @@ do { \ (cg)->impl->func(cg); \ } while(0) +#define arch_code_generator_before_abi(cg) _arch_cg_call(cg, before_abi) #define arch_code_generator_prepare_graph(cg) _arch_cg_call(cg, prepare_graph) #define arch_code_generator_before_sched(cg) _arch_cg_call(cg, before_sched) #define arch_code_generator_before_ra(cg) _arch_cg_call(cg, before_ra) -- 2.20.1