[LLVMdev] Generating Consistent Instruction IDs
Stefan Bucur
stefan.bucur at epfl.ch
Wed Sep 8 05:12:15 PDT 2010
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!
Stefan Bucur
More information about the llvm-dev
mailing list