> 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.