[clang] [clang] Separate Intel ADC instrinsics from ADX intrinsics (PR #75992)
Phoebe Wang via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 19 17:36:09 PST 2023
================
@@ -92,136 +92,11 @@ __INLINE unsigned char
}
#endif
-/* Intrinsics that are also available if __ADX__ is undefined. */
-
-/// Adds unsigned 32-bit integers \a __x and \a __y, plus 0 or 1 as indicated
-/// by the carry flag \a __cf. Stores the unsigned 32-bit sum in the memory
-/// at \a __p, and returns the 8-bit carry-out (carry flag).
-///
-/// \code{.operation}
-/// temp := (__cf == 0) ? 0 : 1
-/// Store32(__p, __x + __y + temp)
-/// result := CF
-/// \endcode
-///
-/// \headerfile <immintrin.h>
-///
-/// This intrinsic corresponds to the \c ADC instruction.
-///
-/// \param __cf
-/// The 8-bit unsigned carry flag; any non-zero value indicates carry.
-/// \param __x
-/// A 32-bit unsigned addend.
-/// \param __y
-/// A 32-bit unsigned addend.
-/// \param __p
-/// Pointer to memory for storing the sum.
-/// \returns The 8-bit unsigned carry-out value.
-__INLINE unsigned char __DEFAULT_FN_ATTRS _addcarry_u32(unsigned char __cf,
----------------
phoebewang wrote:
`__DEFAULT_FN_ATTRS` is not used in this file, remove it or replace it with `__attribute__((__always_inline__, __nodebug__, __target__("adx")))` for the rest functions.
https://github.com/llvm/llvm-project/pull/75992
More information about the cfe-commits
mailing list