Re: Extracting operands from rtl instructions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/8/4 Abdul Wahid Memon <engrwahidmemon@xxxxxxxxx>:
> Considering the following rtl instructions:
>
> (insn 104 457 458 2 (set (reg/v/f:DI 41 r12 [orig:590 dsth ] [590])
>         (reg:DI 5 di [ dsth ])) foo.c:15 62 {*movdi_internal_rex64}
>      (expr_list:REG_DEAD (reg:DI 5 di [ dsth ])
>         (nil)))
>
> Is there any function provided to extract the operands of this
> instructions i.e. di and r12?
>
> Regards
>
> Abdul

You can use PATTERN(insn) to get inner rtx and then
use XEXP(rtx, i) to extract operands.

By the way, I suggest you can take a look at GCC Internal
Chapter10: RTL Representation.  You will find a lot of useful
information of manipulating RTL stuff. :)

Best regards,
jasonwucj




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux