unique id for a llvm Instruction‏

what if another pointer points to the same instruction?
Is this possible to happen?

Eirini

what if another pointer points to the same instruction?

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.

Jonas

There can be a "reverse" situation: if an instruction is deleted, and another one is created, it can get the same address.

-K