jhuber6 wrote:

> Are we assuming any particular relationship to __builtin_readcyclecounter in 
> terms of scales etc?
> 
> __builtin_readsteadycounter could be used to access x86 MPERF clock counters, 
> but to access the corresponding APERF clock we'd then need a 
> __builtin_readvariablecounter equivalent (__builtin_readcyclecounter gives 
> the separate RDTSC clock value)

Not currently at least. The idea is just to expose the counter that has a fixed 
tick rate, compared to the cycle counter which is variable.

https://github.com/llvm/llvm-project/pull/81331
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to