This is the mail archive of the
mailing list for the GCC project.
RE: Implement #pragma unroll?
- From: Alex Turjan <aturjan at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 29 May 2008 06:45:04 -0700 (PDT)
- Subject: RE: Implement #pragma unroll?
Some time ago I had to deal with a similar issue as
you. Basically I did as follows: I built a backend
function which catches the unroll pragma and replaces
it with a target assembly intrinsic (which of course
has to be described in an .md file). After that in the
RTL unroll phase, I analyze loop by loop and connect
them to the corresponding unrolling intrinsic (which
as a field contains the unrolling factor, you may add
here extra information which allows you to recognize
the loop) from where I decide the unrolling factor.
After that in the RTL unroll phase I remove all the
hope this will help,