[Mlir-commits] [mlir] [mlir][tosa] Update pass pipeline for TosaToLinalg (PR #69679)

Kunwar Grover llvmlistbot at llvm.org
Thu Oct 19 23:24:11 PDT 2023


https://github.com/Groverkss created https://github.com/llvm/llvm-project/pull/69679

This patch fixes the nesting of TosaValidation pass added in TosaToLinalg pipeline.

>From 7a9657916288cd0a6c78901e25d7b4d668a4c924 Mon Sep 17 00:00:00 2001
From: Kunwar Grover <groverkss at gmail.com>
Date: Fri, 20 Oct 2023 11:48:12 +0530
Subject: [PATCH] [mlir][tosa] Update pass pipeline for TosaToLinalg

---
 mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
index 3c54f85b033b0b6..268b0b4711536ed 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalgPass.cpp
@@ -90,6 +90,6 @@ void mlir::tosa::addTosaToLinalgPasses(
   pm.addNestedPass<func::FuncOp>(tosa::createTosaLayerwiseConstantFoldPass(
       {options.aggressiveReduceConstant}));
   pm.addNestedPass<func::FuncOp>(tosa::createTosaMakeBroadcastablePass());
-  pm.addNestedPass<func::FuncOp>(tosa::createTosaValidation(validationOptions));
+  pm.addNestedPass<mlir::ModuleOp>(tosa::createTosaValidation(validationOptions));
   pm.addNestedPass<func::FuncOp>(tosa::createTosaToLinalg());
 }



More information about the Mlir-commits mailing list