[flang-commits] [flang] [NFC][flang][OpenMP] Split `DataSharing` and `Clause` processors (PR #81973)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Wed Feb 21 02:12:53 PST 2024


================
@@ -0,0 +1,930 @@
+//===-- ClauseProcessor.cpp -------------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Coding style: https://mlir.llvm.org/getting_started/DeveloperGuide/
+//
+//===----------------------------------------------------------------------===//
+
+#include "ClauseProcessor.h"
+
+#include "flang/Lower/PFTBuilder.h"
+#include "flang/Parser/tools.h"
+#include "flang/Semantics/tools.h"
+
+namespace Fortran {
+namespace lower {
+namespace omp {
+
+//===----------------------------------------------------------------------===//
+// Common helper functions
+//===----------------------------------------------------------------------===//
----------------
skatrak wrote:

Nit: This comment was originally intended to split up helper functions that were used in multiple places of OpenMP.cpp from other helpers that only applied to the ClauseProcessor or other components. I think it's safe to say that here every helper applies, so maybe it makes sense to rename it to "Helper functions" and remove the "ClauseProcessor helper functions" comment below.

https://github.com/llvm/llvm-project/pull/81973


More information about the flang-commits mailing list