From: Matthias Braun Date: Mon, 21 Dec 2009 12:26:22 +0000 (+0000) Subject: don't include old_fctnames.h in firm.h - don't #define size in old_fctnames.h X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=824ddb408c01392ae1c6bc4e09d841e3279382ca;p=libfirm don't include old_fctnames.h in firm.h - don't #define size in old_fctnames.h [r26815] --- diff --git a/include/libfirm/analyze_irg_args.h b/include/libfirm/analyze_irg_args.h index 84831372a..84019ebb0 100644 --- a/include/libfirm/analyze_irg_args.h +++ b/include/libfirm/analyze_irg_args.h @@ -28,6 +28,7 @@ #include "irgraph.h" #include "firm_types.h" +#include "typerep.h" /** * Returns for a method with pointer parameter diff --git a/include/libfirm/firm.h b/include/libfirm/firm.h index edfeca936..5c9324ff4 100644 --- a/include/libfirm/firm.h +++ b/include/libfirm/firm.h @@ -111,7 +111,6 @@ extern "C" { #include "irtypeinfo.h" #include "irvrfy.h" #include "lowering.h" -#include "old_fctnames.h" #include "pseudo_irg.h" #include "rta.h" #include "seqnumbers.h" diff --git a/include/libfirm/iroptimize.h b/include/libfirm/iroptimize.h index 74f3f294e..27f885d7c 100644 --- a/include/libfirm/iroptimize.h +++ b/include/libfirm/iroptimize.h @@ -271,7 +271,12 @@ void opt_if_conv(ir_graph *irg, const ir_settings_if_conv_t *params); ir_graph_pass_t *opt_if_conv_pass( const char *name, const ir_settings_if_conv_t *params); -void opt_sync(ir_graph *irg); +/** + * Tries to reduce dependencies for memory nodes where possible by parllelizing + * them and synchronising with Sync nodes + * @param irg the graph where memory operations should be parallelised + */ +void opt_parallelize_mem(ir_graph *irg); /** * Creates an ir_graph pass for opt_sync(). @@ -280,7 +285,7 @@ void opt_sync(ir_graph *irg); * * @return the newly created ir_graph pass */ -ir_graph_pass_t *opt_sync_pass(const char *name); +ir_graph_pass_t *opt_parallelize_mem_pass(const char *name); /* * Check if we can replace the load by a given const from diff --git a/include/libfirm/old_fctnames.h b/include/libfirm/old_fctnames.h index 7b1c64bc6..93777e41b 100644 --- a/include/libfirm/old_fctnames.h +++ b/include/libfirm/old_fctnames.h @@ -50,7 +50,8 @@ #define get_SymConst_ptrinfo get_SymConst_name #define set_SymConst_ptrinfo set_SymConst_name #define type_tag symconst_type_tag -#define size symconst_type_size +/* don't do this -- too many use this name elswhere */ +/* #define size symconst_type_size */ #define symconst_size symconst_type_size #define linkage_ptr_info symconst_addr_name