[LLVMdev] Integer ID for LLVM::Instruction*?

Owen Anderson resistor at mac.com
Wed May 6 15:57:35 PDT 2015


What’s wrong with the pointer address?

—Owen

> On May 6, 2015, at 3:33 PM, Zhoulai <zell08v at gmail.com> wrote:
> 
> Hi,
> 
> I wonder whether we can easily retrieve an LLVM instruction ID that uniquely identifies the instruction. In my case, I need to avoid using llvm::Instruction* directly. Given an 'inst' of type llvm::instruction*, is there some readily usable method as simple as  “int id = inst->id( )”?  Thanks. 
> 
> Zhoulai
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list