[clang] [Headers][X86] Add macro descriptions to ia32intrin.h (PR #78613)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 19 07:42:20 PST 2024


================
@@ -411,13 +497,45 @@ __rdpmc(int __A) {
 /// \param __A
 ///    Address of where to store the 32-bit \c IA32_TSC_AUX value.
 /// \returns The 64-bit value of the time stamp counter.
+/// \see _rdtsc
 static __inline__ unsigned long long __DEFAULT_FN_ATTRS
 __rdtscp(unsigned int *__A) {
   return __builtin_ia32_rdtscp(__A);
 }
 
-#define _rdtsc() __rdtsc()
----------------
pogo59 wrote:

Thanks! I will revise the description, and make a note to add `__rdtsc` to our guide. (We have `__builtin_readcyclecounter` but not that one.)

https://github.com/llvm/llvm-project/pull/78613


More information about the cfe-commits mailing list