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]

Fwd: Assigning the result of a function call to a variable in the Gfortran frontend


Hello,

I've been hacking on the Gfortran frontend to change array index
expressions to function calls, so that I can inspect them later on in
the pipeline. I go from Fortran -> LLVM IR (through dragonegg) where I
will look at the function call nodes.

However, I'm not able to generate correct IR for this. I can create
function call, but I am unable to assign the return value of a
function call to a variable here.

Here's a link to my experiments here: It includes a patch, a test file
and the GIMPLE output -
https://gist.github.com/bollu/999184bdb3d0f1569ee0fd0a351689e3#file-m-gimple-L24

Help would be very much appreciated!

Thanks,
Siddharth.
-- 
Sending this from my phone, please excuse any typos!


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