[clang] 793e636 - [Headers] Add \returns to _rdpid_u32 (#70481)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 27 10:26:28 PDT 2023
Author: Paul T Robinson
Date: 2023-10-27T13:26:24-04:00
New Revision: 793e636ecb194f43a1fbcc7ccbe9b38888b96f0d
URL: https://github.com/llvm/llvm-project/commit/793e636ecb194f43a1fbcc7ccbe9b38888b96f0d
DIFF: https://github.com/llvm/llvm-project/commit/793e636ecb194f43a1fbcc7ccbe9b38888b96f0d.diff
LOG: [Headers] Add \returns to _rdpid_u32 (#70481)
Our doc tooling complained about this missing directive.
Added:
Modified:
clang/lib/Headers/immintrin.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/immintrin.h b/clang/lib/Headers/immintrin.h
index 642602be14e60e6..9bfe2fcdabdb3a5 100644
--- a/clang/lib/Headers/immintrin.h
+++ b/clang/lib/Headers/immintrin.h
@@ -291,11 +291,13 @@
#if !(defined(_MSC_VER) || defined(__SCE__)) || __has_feature(modules) || \
defined(__RDPID__)
-/// Returns the value of the IA32_TSC_AUX MSR (0xc0000103).
+/// Reads the value of the IA32_TSC_AUX MSR (0xc0000103).
///
/// \headerfile <immintrin.h>
///
/// This intrinsic corresponds to the <c> RDPID </c> instruction.
+///
+/// \returns The 32-bit contents of the MSR.
static __inline__ unsigned int __attribute__((__always_inline__, __nodebug__, __target__("rdpid")))
_rdpid_u32(void) {
return __builtin_ia32_rdpid();
More information about the cfe-commits
mailing list