[LLVMdev] API to retrieve current time.

Mahadevan R mdevan.foobar at gmail.com
Sun Jun 15 08:12:26 PDT 2008


> What's the API to retrieve current time of day in llc?
> I need to use this to generate an unique number every time llc runs.

The llvm.readcyclecounter might suit your needs:
http://www.llvm.org/docs/LangRef.html#int_readcyclecounter

Regards,
-Mahadevan.



More information about the llvm-dev mailing list