[LLVMdev] unique instruction ids

George Baah georgebaah at gmail.com
Sat Aug 11 16:35:19 PDT 2012


I am wondering whether the values of the casts are guaranteed to be unique
for every instruction.

George

On Sat, Aug 11, 2012 at 7:26 PM, Nick Lewycky <nicholas at mxc.ca> wrote:

> George Baah wrote:
>
>> Hi All,
>>    I am trying to find out whether llvm assigns unique numeric ids to
>> instructions?
>>
>
> No, we use the Instruction* wherever we want to refer to a unique
> instruction. I suppose you could cast that to an integer.
>
> Nick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120811/a175f3b4/attachment.html>


More information about the llvm-dev mailing list