Re: flattening cfgloop.h

2014-12-17 Thread Richard Biener
On Sun, Dec 14, 2014 at 10:39 PM, Prathamesh Kulkarni
prathamesh.kulka...@linaro.org wrote:
 Hi,
 The attached patch flattens cfgloop.h.
 Created new file cfgloopanal.h which exports function prototypes
 from cfgloopanal.c. Rest of the patch involves restructuring includes.

 Boostrapped and tested on x86_64-unknown-linux-gnu with ISL enabled.
 Built on all targets in config-list.mk with languages c, c++ enabled.

Ok.

Can you get yourself SVN write access please?  You can name me as
sponsor, see https://gcc.gnu.org/svnwrite.html

Thanks,
Richard.

 Thank you,
 Prathamesh


Re: flattening cfgloop.h

2014-12-17 Thread Prathamesh Kulkarni
On 17 December 2014 at 21:15, Richard Biener richard.guent...@gmail.com wrote:
 On Sun, Dec 14, 2014 at 10:39 PM, Prathamesh Kulkarni
 prathamesh.kulka...@linaro.org wrote:
 Hi,
 The attached patch flattens cfgloop.h.
 Created new file cfgloopanal.h which exports function prototypes
 from cfgloopanal.c. Rest of the patch involves restructuring includes.

 Boostrapped and tested on x86_64-unknown-linux-gnu with ISL enabled.
 Built on all targets in config-list.mk with languages c, c++ enabled.

 Ok.

 Can you get yourself SVN write access please?  You can name me as
 sponsor, see https://gcc.gnu.org/svnwrite.html
Thanks!

 Thanks,
 Richard.

 Thank you,
 Prathamesh


flattening cfgloop.h

2014-12-14 Thread Prathamesh Kulkarni
Hi,
The attached patch flattens cfgloop.h.
Created new file cfgloopanal.h which exports function prototypes
from cfgloopanal.c. Rest of the patch involves restructuring includes.

Boostrapped and tested on x86_64-unknown-linux-gnu with ISL enabled.
Built on all targets in config-list.mk with languages c, c++ enabled.

Thank you,
Prathamesh
2014-12-14  Prathamesh Kulkarni  prathamesh.kulka...@linaro.org

* cfgloopanal.h: New header file containing function prototypes from 
cfgloopanal.c

* cfgloop.h: Remove includes.
(mark_irreducible_loops): Move prototype to cfgloopanal.h
(num_loop_insns): Likewise.
(average_num_loop_insns): Likewise.
(get_loop_level): Likewise.
(mark_loop_exit_edges): Likewise.
(just_once_each_iteration_p): Likewise.
(expected_loop_iterations_unbounded): Likewise.
(estimate_reg_pressure_cost): Likewise.
(init_set_costs): Likewise.

* asan.c: Include double-int.h, wide-int.h, bitmap.h, sbitmap.h, 
cfgloopmanip.h, cfgloopanal.h
* auto-profile.c: Likewise.
* bt-load.c: Likewise.
* cfg.c: Likewise.
* cfgcleanup.c: Likewise.
* cfgloop.c: Likewise.
* cfgloopanal.c: Likewise.
* cfgloopmanip.c: Likewise.
* cfgrtl.c: Likewise.
* cgraph.c: Likewise.
* cgraphunit.c: Likewise.
* config/aarch64/aarch64.c: Likewise.
* config/mn10300/mn10300.c: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/s390/s390.c: Likewise.
* config/sh/sh.c: Likewise.
* config/spu/spu.c: Likewise.
* config/tilegx/tilegx.c: Likewise.
* config/tilepro/tilepro.c: Likewise.
* config/i386/i386.c: Include double-int.h, bitmap.h, cfgloopmanip.h, 
cfgloopanal.h.
* cprop.c: Likewise.
* except.c: Likewise.
* ggc-page.c: Likewise.
* gimple-ssa-isolate-paths.c: Likewise.
* graphite-blocking.c: Likewise.
* graphite-dependences.c: Likewise.
* graphite-interchange.c: Likewise.
* graphite-isl-ast-to-gimple.c: Likewise.
* graphite-optimize-isl.c: Likewise.
* graphite-poly.c: Likewise.
* graphite-scop-detection.c: Likewise.
* graphite-sese-to-poly.c: Likewise.
* graphite.c: Likewise.
* haifa-sched.c: Likewise.
* hw-doloop.c: Likewise.
* ifcvt.c: Likewise.
* ipa-icf-gimple.c: Likewise.
* ipa-icf.c: Likewise.
* ipa-inline-analysis.c: Likewise.
* ipa-pure-const.c: Likewise.
* ipa-split.c: Likewise.
* ira-costs.c: Likewise.
* loop-doloop.c: Likewise.
* loop-init.c: Likewise.
* loop-iv.c: Likewise.
* loop-unroll.c: Likewise.
* lto-streamer-in.c: Likewise.
* lto-streamer-out.c: Likewise.
* modulo-sched.c: Likewise.
* omp-low.c: Likewise.
* passes.c: Likewise.
* predict.c: Likewise.
* profile.c: Likewise.
* sese.c: Likewise.
* target-globals.c: Likewise.
* toplev.c: Likewise.
* tracer.c: Likewise.
* trans-mem.c: Likewise.
* tree-cfg.c: Likewise.
* tree-cfgcleanup.c: Likewise.
* tree-complex.c: Likewise.
* tree-data-ref.c: Likewise.
* tree-eh.c: Likewise.
* tree-if-conv.c: Likewise.
* tree-inline.c: Likewise.
* tree-into-ssa.c: Likewise.
* tree-loop-distribution.c: Likewise.
* tree-parloops.c: Likewise.
* tree-scalar-evolution.c: Likewise.
* tree-ssa-copy.c: Likewise.
* tree-ssa-dce.c: Likewise.
* tree-ssa-dom.c: Likewise.
* tree-ssa-forwprop.c: Likewise.
* tree-ssa-loop-ch.c: Likewise.
* tree-ssa-loop-im.c: Likewise.
* tree-ssa-loop-ivcanon.c: Likewise.
* tree-ssa-loop-ivopts.c: Likewise.
* tree-ssa-loop-manip.c: Likewise.
* tree-ssa-loop-niter.c: Likewise.
* tree-ssa-loop-prefetch.c: Likewise.
* tree-ssa-loop-unswitch.c: Likewise.
* tree-ssa-loop.c: Likewise.
* tree-ssa-phiopt.c: Likewise.
* tree-ssa-pre.c: Likewise.
* tree-ssa-reassoc.c: Likewise.
* tree-ssa-sccvn.c: Likewise.
* tree-ssa-sink.c: Likewise.
* tree-ssa-tail-merge.c: Likewise.
* tree-ssa-threadedge.c: Likewise.
* tree-ssa-threadupdate.c: Likewise.
* tree-ssa.c: Likewise.
* tree-switch-conversion.c: Likewise.
* tree-tailcall.c: Likewise.
* tree-vect-data-refs.c: Likewise.
* tree-vect-loop-manip.c: Likewise.
* tree-vect-loop.c: Likewise.
* tree-vect-patterns.c: Likewise.
* tree-vect-slp.c: Likewise.
* tree-vect-stmts.c: Likewise.
* tree-vectorizer.c: Likewise.
* tree-vrp.c: Likewise.
* ubsan.c: Likewise.
* vtable-verify.c: Likewise.
* cfgexpand.c: Include double-int.h, wide-int.h,