API to retrieve current time.

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.

TIA
- Sanjiv

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.

I need this at compile-time. I want to use this number in the generated
.s file.

- Sanjiv

Hello, Sanjiv

I need this at compile-time. I want to use this number in the generated
.s file.

time(0) ?

Note that using the current time won't be unique in the
case of concurrent llc runs.

Dan