[clang] [Headers][X86] Add macro descriptions to ia32intrin.h (PR #78613)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 18 19:03:58 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()
----------------
phoebewang wrote:
I think the old code is correct. The `__rdtsc` is a built in, and we have documented in Intrinsic Guide.
https://github.com/llvm/llvm-project/pull/78613
More information about the cfe-commits
mailing list