================
@@ -2208,6 +2208,12 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned 
BuiltinID,
     return Builder.CreateCall(Emit);
   }
 
+  if (BuiltinID == clang::ARM::BI_ReadWriteBarrier ||
+      BuiltinID == clang::ARM::BI_ReadBarrier ||
+      BuiltinID == clang::ARM::BI_WriteBarrier)
+    return Builder.CreateFence(llvm::AtomicOrdering::SequentiallyConsistent,
----------------
hamed7ir wrote:

Done: they lower through MSVCIntrin now, and x86 and AArch64 use it too. CIR's 
x86 path uses the same translateX86ToMsvcIntrin, so its copy moved into its 
MSVCIntrin switch as well.

https://github.com/llvm/llvm-project/pull/240572
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to