[Mlir-commits] [flang] [mlir] [Flang][mlir] - Translation of delayed privatization for deferred target-tasks (PR #155348)
Pranav Bhandarkar
llvmlistbot at llvm.org
Mon Sep 8 12:04:32 PDT 2025
================
@@ -0,0 +1,23 @@
+//===- OpenMPOffloadPrivatizationPrepare.h - Prepare for OpenMP Offload
+// Privatization -*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef MLIR_DIALECT_LLVMIR_TRANSFORMS_PREPAREFOROMPOFFLOADPRIVATIZATIONPASS_H
----------------
bhandarkar-pranav wrote:
It should be sufficient, however with `GEN_PASS_DECL` and `GEN_PASS_REGISTRATION, [Passes.h](https://github.com/llvm/llvm-project/blob/main/mlir/include/mlir/Dialect/LLVMIR/Transforms/Passes.h) turns on declarations and registrations for all passes inside `mlir/lib/Dialect/LLVMIR/Transforms`. At this point, that'll mean 6 passes, which arguably is not much.
```
grep "Pass<" mlir/include/mlir/Dialect/LLVMIR/Transforms/Passes.td | wc -l
6
```
So, let me know if you'd like me to make this change.
https://github.com/llvm/llvm-project/pull/155348
More information about the Mlir-commits
mailing list