[flang-commits] [flang] [llvm] [flang][OpenMP] Overhaul implementation of ATOMIC construct (PR #137852)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed May 28 10:19:08 PDT 2025
================
@@ -4217,49 +3783,168 @@ genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
standaloneConstruct.u);
}
-//===----------------------------------------------------------------------===//
-// OpenMPConstruct visitors
-//===----------------------------------------------------------------------===//
-
static void genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
semantics::SemanticsContext &semaCtx,
lower::pft::Evaluation &eval,
const parser::OpenMPAllocatorsConstruct &allocsConstruct) {
TODO(converter.getCurrentLocation(), "OpenMPAllocatorsConstruct");
}
+//===----------------------------------------------------------------------===//
+// OpenMPConstruct visitors
+//===----------------------------------------------------------------------===//
+
+[[maybe_unused]] static void
+dumpAnalysis(const parser::OpenMPAtomicConstruct::Analysis &analysis) {
----------------
tblah wrote:
Ultra-nit, but it isn't too far fetched that some other construct might one day need analysis following a similar pattern.
```suggestion
dumpAtomicAnalysis(const parser::OpenMPAtomicConstruct::Analysis &analysis) {
```
https://github.com/llvm/llvm-project/pull/137852
More information about the flang-commits
mailing list