[LLVMdev] Generating Consistent Instruction IDs

Devang Patel dpatel at apple.com
Wed Sep 8 10:16:08 PDT 2010


On Sep 8, 2010, at 5:12 AM, Stefan Bucur wrote:

> Hi,
> 
> I'd like to ask you what's the best way of generating instruction
> identifiers which are consistent across independent invocations of the
> LLVM program. One way would be to use a counter and iterate over all
> the functions, then all the BBs. But are there any guarantees on the
> ordering of the functions and BBs in the iteration? In extremis, I can
> sort the functions after name, but what about the basic blocks?
> 
> Thanks!

How do you intend to use these IDs ?
-
Devang



More information about the llvm-dev mailing list