[flang-commits] [flang] [flang][OpenMP] Add alias analysis for omp private (PR #113566)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Thu Oct 24 09:09:27 PDT 2024


================
@@ -372,6 +372,17 @@ getAttrsFromVariable(fir::FortranVariableOpInterface var) {
   return attrs;
 }
 
+static std::optional<omp::BlockArgOpenMPOpInterface>
+getOpenMPBlockArgInterface(Operation *op) {
+  std::optional<omp::BlockArgOpenMPOpInterface> blockArgOpenMPOpInterface;
+  if (!op)
+    return blockArgOpenMPOpInterface;
+  if (llvm::isa<omp::TargetOp>(op) || llvm::isa<omp::ParallelOp>(op)) {
----------------
tblah wrote:

Why not return the block args interface for other operation types (where the dyn_cast succeeds)?

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


More information about the flang-commits mailing list