[LLVMdev] how to get a deterministic execution

dan mihai dnmh68 at hotmail.com
Mon May 18 20:33:02 PDT 2009


For debugging purposes, I've added a unique id member to the Value class:

global_next_vuid = 0;
  vuid = ++global_next_vuid;

My hope is that by looking at the vuid of a Value, I can see its vuid,
set a conditional breakpoint and re-run the compiler to
see who (what pass) constructed that value.

Maybe I am not doing it the right way, but the above 'vuid' field doesn't seem
to be updated deterministically.

I am using a DEBUG built. Is LLVM multithreaded by default?

Is it possible to get a deterministic behavior?

Thank you,

HotmailĀ® goes with you. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090519/4ef51a34/attachment.html>

More information about the llvm-dev mailing list