[PATCH] [OPENMP] Codegen for "#pragma omp atomic write"

David Majnemer david.majnemer at gmail.com
Sun Feb 15 23:58:55 PST 2015


================
Comment at: lib/CodeGen/CGStmtOpenMP.cpp:859
@@ +858,3 @@
+  else
+    CGF.EmitAtomicStore(ExprRValue, XLValue, /*isInit=*/false);
+  // OpenMP, 2.12.6, atomic Construct
----------------
Shouldn't you use `monotonic` ordering if the `omp write` isn't `seq_cst`?

http://reviews.llvm.org/D7369

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list