This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] cfghooks questions
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: Devang Patel <dpatel at apple dot com>
- Cc: "gcc at gcc dot gnu dot org list" <gcc at gcc dot gnu dot org>
- Date: Tue, 13 Jan 2004 16:18:12 +0100
- Subject: Re: [tree-ssa] cfghooks questions
- References: <8949E841-456F-11D8-BEAA-000393A91CAA@apple.com>
> 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
> 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.