This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: API for callgraph and IPA passes for whole program optimization


> Currently the job to drive compilation process is implemented in
> cgraphunit and passmanager. I am leaning to plan to do as much work as

BTW for a while I think that name of cgraphunit outlived its original
meaning.

Just as historical note, it was introduced so because some bits wasn't
possible to put into cgraph.c because frontends not converted to
function-at-a-time didn't link then (by not defining walk_tree, for
instance).  So I split cgraph into stuff required by middle end linked
in unconditionally and stuff required to drive unit-at-a-time
compilation linked only to unit-at-a-time frontends.

It probably should be moved to driver.c after unrelated
cgraph/passmanager bits are pulled out of that file.

Honza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]