[clang] [Headers] Add \returns to _rdpid_u32 (PR #70481)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 27 10:02:49 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Paul T Robinson (pogo59)

<details>
<summary>Changes</summary>

Our doc tooling complained about this missing directive.

---
Full diff: https://github.com/llvm/llvm-project/pull/70481.diff


1 Files Affected:

- (modified) clang/lib/Headers/immintrin.h (+3-1) 


``````````diff
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();

``````````

</details>


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


More information about the cfe-commits mailing list