__if_exists __if_not_exists alternative

2007-09-15 Thread Dmitry Sychov

Hello,

Doing meta programming without "__if_exists"
is tricky.

The result solutions are heavy and take many
lines of source code (trait classes).

Will gcc include such a feature or alternative
in the near future?

Also, anyone interested in writing a patch?

I can sponsor the result at certain degree with possible 
cooperation with others, who is interested.


Thanks, Dmitry


New GCC ICI (with plug-ins for dynamic pass reordering)

2007-09-15 Thread Grigori Fursin
Hello all,

In case some of you are interested, we produced a new version 
of the Interactive Compilation Interface (ICI) for GCC
(the tarball for this release can be downloaded here:
https://sourceforge.net/project/showfiles.php?group_id=180190&package_id=245842&release_id=539711)

To remind, the main aim of the Interactive Compilation Interface (ICI)
is to transform GCC into research compiler with minimal changes. 

In a new version we re-designed the ICI completely based on the 
valuable feedback from the users after the SMART'07 workshop and 
GCC HiPEAC'07 tutorial (many thanks to Cupertino Miranda 
who implemented most of it). The communication with the new ICI 
is now performed through a dynamically linked GCC plug-in written 
in C (however any high-level or scripting language can be used 
with a wrapper). 

Current implementation includes the ability to reorder or turn
specific GCC passes on and off on a function level. 
We currently work to implement all remaining functions 
of the specified interface, add passes to extract program
features and split analysis and optimization code to enable 
access to compiler transformations at a fine-grain level.
 
More info is available at the GCC-ICI project website:
http://gcc-ici.sourceforge.net

I am also finishing/testing a new framework for
transparent iterative compilation for GCC 
(works with compiler flags and pass reordering) 
which I plan release in about 1.5 months...

Yours,
Grigori Fursin

P.S. I am at the GREPS'07 workshop and PACT'07 conference 
at the moment so if some of you are there and have questions, 
I will be happy to have a chat ;) ...


Grigori Fursin, PhD
Research Scientist, INRIA Futurs, France
http://fursin.net/research



RE: Enabling gcc optimization pass

2007-09-15 Thread Grigori Fursin
Hi,
Actually, just saw your post, so wanted to say that it is possible with 
the new GCC-ICI framework. You can find more info here:
http://gcc-ici.sourceforge.net
There is no checking for pass dependencies and we are working on it now ...
Hope it is still of any help ;),
Grigori


Grigori Fursin, PhD
Research Scientist, INRIA Futurs, France
http://fursin.net/research
 

-Original Message-
From: gcc-owner at gcc dot gnu dot org [mailto:gcc-owner at gcc dot gnu dot 
org] On Behalf Of Rohit
Arul Raj
Sent: Thursday, July 26, 2007 10:30 AM
To: gcc
Subject: Enabling gcc optimization pass

Hi all,

I have 3 functions- fun1, fun2, fun3 in the same source file and i want to 
enable one or any of the
gcc optimization pass to code in fun2 only,

1. Is it possible to implement this using function attributes or #pragms's?

2. What will be its side-effects?

Regards,
Rohit




Nvidia PTX backend

2007-09-15 Thread Justin Bennett
I'm thinking about starting a project to add a backend for the Nvidia
CUDA PTX instruction set, and eventually a front end that understands
the .cu files.  Has anybody taken a look at doing this?  Just wanted
to check to make sure I'm not duplicating work before I begin planning
out the changes needed.

Also, I expect there will be a lot changes needed to support this, so
if anybody else is interested let me know.

Justin