[LLVMdev] API to retrieve current time.

Sanjiv.Gupta at microchip.com Sanjiv.Gupta at microchip.com
Sun Jun 15 08:52:25 PDT 2008

> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu 
> [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Mahadevan R
> Sent: Sunday, June 15, 2008 8:42 PM
> To: LLVM Developers Mailing List
> Subject: Re: [LLVMdev] 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.
> The llvm.readcyclecounter might suit your needs:
> http://www.llvm.org/docs/LangRef.html#int_readcyclecounter
I need this at compile-time. I want to use this number in the generated
.s file.

- Sanjiv

More information about the llvm-dev mailing list