[clang] [CIR] Add support for storing into _Atomic variables (PR #165872)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 4 08:09:51 PST 2025
================
@@ -815,6 +857,85 @@ RValue CIRGenFunction::emitAtomicExpr(AtomicExpr *e) {
e->getExprLoc());
}
+void CIRGenFunction::emitAtomicStore(RValue rvalue, LValue dest, bool isInit) {
+ bool isVolatile = dest.isVolatileQualified();
+ cir::MemOrder order;
+ if (dest.getType()->isAtomicType()) {
+ order = cir::MemOrder::SequentiallyConsistent;
+ } else {
+ order = cir::MemOrder::Release;
----------------
Lancern wrote:
Looks like this path is for MSVC mode. Replaced it with a missing feature guard.
https://github.com/llvm/llvm-project/pull/165872
More information about the cfe-commits
mailing list