[Mlir-commits] [mlir] 5217801 - [mlir][arith] Do not limit arith-expand pass to FuncOp

Ivan Butygin llvmlistbot at llvm.org
Mon Feb 14 00:50:29 PST 2022


Author: Ivan Butygin
Date: 2022-02-14T11:49:19+03:00
New Revision: 5217801daefbcad25ece6c784fea1d05244cf34c

URL: https://github.com/llvm/llvm-project/commit/5217801daefbcad25ece6c784fea1d05244cf34c
DIFF: https://github.com/llvm/llvm-project/commit/5217801daefbcad25ece6c784fea1d05244cf34c.diff

LOG: [mlir][arith] Do not limit arith-expand pass to FuncOp

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.td b/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.td
index af46bfd14105a..3452ccdca6dae 100644
--- a/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.td
+++ b/mlir/include/mlir/Dialect/Arithmetic/Transforms/Passes.td
@@ -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"];


        


More information about the Mlir-commits mailing list