This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Function Name from CALL_INSN RTX
- From: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>
- To: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Mon, 17 Oct 2011 21:21:34 -0700
- Subject: Function Name from CALL_INSN RTX
Hello Everyone,
Is it possible to extract the function name (as a tree or char *) from a CALL_INSN RTX? Is there a #define or a series of #defines that can accomplish this?
The tried to find this information by stepping through the print_rtx function using gdb and the information (as a char *) is currently stored in the following location of a CALL_INSN: "insn->u.fld[4]->rt_rtx->u.fld[1]->rt_rtx->u.fld[0]->rt_rtx->u.fld[0]->rt_rtx->u.fld[0]->rt_str "
Does anyone know of a #define or a function I can call to retrieve this information? I would prefer to use functions or #defines rather than absolute locations for future compatibility.
Any help is greatly appreciated!
Thanks,
Balaji V. Iyer.