extra information in rtx data structure.

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

 



Hello,

What is the proper way of storing additional information in insn rtx object?
I'm adding two rtl passes to the gcc. The first pass does some analysis work
and needs to store information for each rtx while the second pass expected
do the optimization based on the information added  by the first pass.
Currently I see few options for that:
1. In the first pass insert notes before the insn and then look for them in
the second pass.
2. Define and use my special REG_NOTE. Then it can be added to the insn rtx.
3. Define my own array/hash with UID as a key.

Is there more elegant way of doing that? If not what of the 3 mentioned
above you think is the best?

BR, Viktor.







[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