[PATCH] D155794: [OpenMP][OpenMPIRBuilder] Migrate setPropertyExecutionMode() from Clang to OpenMPIRBuilder.
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 26 08:42:49 PDT 2023
jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.
LG, address the nits below please.
================
Comment at: clang/lib/CodeGen/CodeGenModule.h:1017
+ return LLVMCompilerUsed;
+ }
+
----------------
Unused now.
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:4941
+ GlobalValue::WeakAnyLinkage,
+ ConstantInt::get(llvm::Type::getInt8Ty(M.getContext()),
+ IsSPMDMode ? OMP_TGT_EXEC_MODE_SPMD
----------------
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:4949-4956
bool OpenMPIRBuilder::checkAndEmitFlushAfterAtomic(
- const LocationDescription &Loc, llvm::AtomicOrdering AO, AtomicKind AK) {
- assert(!(AO == AtomicOrdering::NotAtomic ||
- AO == llvm::AtomicOrdering::Unordered) &&
- "Unexpected Atomic Ordering.");
+ const LocationDescription &Loc, AtomicOrdering AO, AtomicKind AK) {
+ assert(
+ !(AO == AtomicOrdering::NotAtomic || AO == AtomicOrdering::Unordered) &&
+ "Unexpected Atomic Ordering.");
bool Flush = false;
----------------
unrelated. Avoid in this commit, feel free to push a NFC clang-format patch first.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155794/new/
https://reviews.llvm.org/D155794
More information about the cfe-commits
mailing list