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: [tree-ssa] cfghooks questions


Hello,

> I am trying to understand cfghooks architecture.
> I see three kind of hooks, rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks
> and tree_cfg_hooks.
> 
> My initial understanding was that cfg_layout hooks is IR independent.
> But that is not case because it is tightly connected to RTL
> (and at first I missed 'rtl' word in its name). So do we need
> another cfg_layout_tree_cfg_hooks for trees or we want to make 
> cfg_layout
> lang. IR independent ?

cfg_layout is just a layer over rtl that abstracts over some issues
on the raw rtl representation (explicit jumps, notes and insns not
belonging to any basic block).  Tree cfg is now in sufficiently clean
state that no such abstraction is neccessary.

Zdenek


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