This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
finding the induction variable after graphite (before ivcanon pass)?
- From: Basile Starynkevitch <basile at starynkevitch dot net>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 19 May 2011 16:21:55 +0200
- Subject: finding the induction variable after graphite (before ivcanon pass)?
Hello
I am coding a pass in MELT which should ideally transform some OpenCL things
into Gimple (yes, I do know that this has been done by Andrey Belevantset et
al in their http://www.gccsummit.org/2010/view_abstract.php?content_key=15
paperat GCC Summit 2010).
That meltopengpu_detect pass is in the MELT branch file
gcc/melt/xtramelt-opengpu.melt
It is currently installed before the ivcanon pass.
How should I find the induction variable? I could loop at the internal name
of the variable, and check if it starts with graphite_IV. But is there a
better way?
(I want to code a MELT extension to gcc-4.6 thru the MELT plugin)
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***