[clang] [llvm] [AArch64] Implement the atomic store with hint intrinsic (PR #198316)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 05:00:40 PDT 2026


================
@@ -320,6 +321,94 @@ bool SemaARM::BuiltinARMSpecialReg(unsigned BuiltinID, CallExpr *TheCall,
   return false;
 }
 
+bool SemaARM::BuiltinARMAtomicStoreHintCall(unsigned BuiltinID,
+                                            CallExpr *TheCall) {
+  if (SemaRef.checkArgCount(TheCall, 4))
+    return true;
+
+  // Arg 0 should be the pointer type. The pointee type must be a
+  // scalar integral or floating-point type of 8, 16, 32 or 64 bits.
----------------
CarolineConcatto wrote:

Hi @efriedma-quic,
The [ACLE specification](https://github.com/ARM-software/acle/pull/432), that proposed these builtins does not mention vector types:

>  This intrinsic is
> type generic and supports scalar integral and floating-point types of 8, 16, 32, and 64 bits.

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


More information about the cfe-commits mailing list