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: getting non-global variable names from RTL


On Tue, 2004-02-24 at 12:28, Mihai Burcea wrote:
> Like I said, right now I'm trying to identify a pattern in the sequence of 
> insns, so that I can always find and identify the variables based on that 
> pattern (e.g., I first look for the first occurrence of a set (mem (reg 

This will be hard in RTL.  They are machine/ABI dependent, and they are
too low level.  There is probably no easy way to do this in RTL.

I suggest looking at the tree-ssa branch.  It adds a higher level IL
which is close to the current tree structure.  It might be easier to get
the info you are looking for from there.  If you already have a lot of
code written for an RTL optimizer though, then this may be more of a
distraction than a help, because you would have to rewrite a lot of
stuff.  The tree-ssa branch already has some IPA stuff, such as an
implementation of Andersen's points-to analysis.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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