From: Alex Zinenko Date: Thu, 20 Jul 2023 13:53:51 +0000 (+0000) Subject: [mlir] remove RegionBranchOpInterface from linalg ops X-Git-Tag: upstream/17.0.6~862 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2469cdd156c5290c087116a2b5eaf99f9ef12f09;p=platform%2Fupstream%2Fllvm.git [mlir] remove RegionBranchOpInterface from linalg ops Linalg structure ops do not implement control flow in the way expected by RegionBranchOpInterface, and the interface implementation isn't actually used anywhere. The presence of this interface without correct implementation is confusing for, e.g., dataflow analyses. Reviewed By: springerm Differential Revision: https://reviews.llvm.org/D155841 --- diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td index dd2a943..c8d5799 100644 --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td @@ -16,7 +16,6 @@ include "mlir/Dialect/Linalg/IR/LinalgBase.td" include "mlir/Dialect/Linalg/IR/LinalgInterfaces.td" -include "mlir/Interfaces/ControlFlowInterfaces.td" include "mlir/Interfaces/DestinationStyleOpInterface.td" include "mlir/Interfaces/InferTypeOpInterface.td" include "mlir/Interfaces/SideEffectInterfaces.td" @@ -32,7 +31,6 @@ class LinalgStructuredBase_Op props> DeclareOpInterfaceMethods, DestinationStyleOpInterface, LinalgStructuredInterface, - RegionBranchOpInterface, ReifyRankedShapedTypeOpInterface], props)> { code structuredOpsBaseDecls = [{ // Return whether the op accesses the iteration indices. @@ -45,13 +43,6 @@ class LinalgStructuredBase_Op props> return llvm::cast(getOperation()).reifyResultShapes(b, reifiedReturnShapes); } - - void getSuccessorRegions( - std::optional index, ArrayRef operands, - SmallVectorImpl ®ions) { - // Op has a region, but conceptually the control flow does not enter the - // region. - } }]; }