[mlir][arith] Do not limit arith-expand pass to FuncOp
authorIvan Butygin <ivan.butygin@gmail.com>
Sun, 13 Feb 2022 13:28:29 +0000 (16:28 +0300)
committerIvan Butygin <ivan.butygin@gmail.com>
Mon, 14 Feb 2022 08:49:19 +0000 (11:49 +0300)
This pass doesn't have any limitations specific to FuncOp and it will be useful to be able to run it on other ops (e.g. gpu.func).

Differential Revision: https://reviews.llvm.org/D119662

mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.td

index af46bfd..3452ccd 100644 (file)
@@ -28,7 +28,7 @@ def ArithmeticBufferize : Pass<"arith-bufferize", "ModuleOp"> {
   ];
 }
 
-def ArithmeticExpandOps : Pass<"arith-expand", "FuncOp"> {
+def ArithmeticExpandOps : Pass<"arith-expand"> {
   let summary = "Legalize Arithmetic ops to be convertible to LLVM.";
   let constructor = "mlir::arith::createArithmeticExpandOpsPass()";
   let dependentDialects = ["StandardOpsDialect"];