Hello all,

I am trying to get an access to local variables of a function thanks to the GIMPLE representation. When I read the dump file after the CFG pass, I can see a new temporary variable added. For example with the identity function I would like to get an access to the uid of this variable.

A piece of code :

float
id (float x)
{
    return x;
}

Dump file :


;; Function id (id)

Merging blocks 2 and 3
id (float x)
{
  float D.2718;

<bb 2>:
  D.2718 = x;
  return D.2718;

}

In this example, I can have access to everything except the declaration of D.2718. It's the same thing with the explicit declaration of an int in an other example.

Does anyone know how can I get this information ? Maybe I can't or maybe I do something wrong but I am a little bit stucked.

Thank you for your time.

Cheers

--
Jeremie Salvucci

Reply via email to