[flang-commits] [flang] [flang][cuda] Change how abstract result pass is scheduled on func.func and gpu.func (PR #119034)
via flang-commits
flang-commits at lists.llvm.org
Mon Dec 9 01:06:21 PST 2024
================
@@ -16,8 +16,14 @@ namespace fir {
void addNestedPassToAllTopLevelOperations(mlir::PassManager &pm,
PassConstructor ctor) {
addNestedPassToOps<mlir::func::FuncOp, mlir::omp::DeclareReductionOp,
- mlir::omp::PrivateClauseOp, fir::GlobalOp,
- mlir::gpu::GPUModuleOp>(pm, ctor);
+ mlir::omp::PrivateClauseOp, fir::GlobalOp>(pm, ctor);
+}
+
+template <typename NestOpTy>
+void addNestedPassToNest(mlir::PassManager &pm, PassConstructor ctor) {
----------------
jeanPerier wrote:
I find the template and the name hard to grasp. Maybe the template is overkill here and you could directly name it as `addPassToGPUFunc`
https://github.com/llvm/llvm-project/pull/119034
More information about the flang-commits
mailing list