[llvm-dev] Get timestamp and processor ID in the IR

Hal Finkel via llvm-dev
2015-11-19T21:33:13Z

Hi Zhi,

There is no standard (architecture-independent) way to get the processor id. We
do have an intrinsic to get the cycle counter:

  http://llvm.org/docs/LangRef.html#llvm-readcyclecounter-intrinsic

 -Hal

----- Original Message -----
> From: "zhi chen via llvm-dev" <llvm-dev at lists.llvm.org>
> To: llvm-dev at lists.llvm.org
> Sent: Thursday, November 19, 2015 3:29:40 PM
> Subject: [llvm-dev] Get timestamp and processor ID in the IR
>
>
>
> Hi,
>
>
> I am wondering if it is possible to get the time-stamp and the
> processor ID where an instruction is exectued in the IR? Thanks for
> your help in advance:)
>
>
> Best,
> Zhi
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>

--
Hal Finkel
Assistant Computational Scientist
Leadership Computing Facility
Argonne National Laboratory