[LLVMdev] unique id for a llvm Instruction
kparzysz at codeaurora.org
Tue Sep 3 13:41:59 PDT 2013
On 8/29/2013 8:45 AM, Jonas Wagner wrote:
> You can have many pointers to the same instruction. However, the address
> in memory where that instruction lives is unique. Instruction pointers
> (or Value pointers) are thus commonly used as keys in hash tables or
> similar. Instructions or Values are almost never copied, so that you
> won't find the same instruction at different addresses in memory.
There can be a "reverse" situation: if an instruction is deleted, and
another one is created, it can get the same address.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev