Skip to content

Commit 6364707

Browse files
authored
[MLIR] Remove CopyOpInterface (#157711)
This interface isn't used anywhere anymore.
1 parent 85fb1f1 commit 6364707

File tree

13 files changed

+3
-92
lines changed

13 files changed

+3
-92
lines changed

mlir/include/mlir/Dialect/Bufferization/IR/Bufferization.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "mlir/Bytecode/BytecodeOpInterface.h"
1313
#include "mlir/Dialect/Bufferization/IR/AllocationOpInterface.h"
1414
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"
15-
#include "mlir/Interfaces/CopyOpInterface.h"
1615
#include "mlir/Interfaces/DestinationStyleOpInterface.h"
1716
#include "mlir/Interfaces/InferTypeOpInterface.h"
1817
#include "mlir/Interfaces/SubsetOpInterface.h"

mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ include "mlir/Interfaces/DestinationStyleOpInterface.td"
1818
include "mlir/Interfaces/InferTypeOpInterface.td"
1919
include "mlir/Interfaces/SideEffectInterfaces.td"
2020
include "mlir/Interfaces/SubsetOpInterface.td"
21-
include "mlir/Interfaces/CopyOpInterface.td"
2221

2322
class Bufferization_Op<string mnemonic, list<Trait> traits = []>
2423
: Op<Bufferization_Dialect, mnemonic, traits>;
@@ -171,7 +170,6 @@ def Bufferization_AllocTensorOp : Bufferization_Op<"alloc_tensor",
171170
//===----------------------------------------------------------------------===//
172171

173172
def Bufferization_CloneOp : Bufferization_Op<"clone", [
174-
CopyOpInterface,
175173
MemoryEffectsOpInterface,
176174
DeclareOpInterfaceMethods<AllocationOpInterface, ["buildDealloc", "buildClone"]>
177175
]> {

mlir/include/mlir/Dialect/Linalg/IR/Linalg.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "mlir/IR/ImplicitLocOpBuilder.h"
2323
#include "mlir/IR/TypeUtilities.h"
2424
#include "mlir/Interfaces/ControlFlowInterfaces.h"
25-
#include "mlir/Interfaces/CopyOpInterface.h"
2625
#include "mlir/Interfaces/DestinationStyleOpInterface.h"
2726
#include "mlir/Interfaces/InferTypeOpInterface.h"
2827
#include "mlir/Interfaces/SideEffectInterfaces.h"

mlir/include/mlir/Dialect/MemRef/IR/MemRef.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "mlir/Interfaces/CallInterfaces.h"
1717
#include "mlir/Interfaces/CastInterfaces.h"
1818
#include "mlir/Interfaces/ControlFlowInterfaces.h"
19-
#include "mlir/Interfaces/CopyOpInterface.h"
2019
#include "mlir/Interfaces/InferIntRangeInterface.h"
2120
#include "mlir/Interfaces/InferTypeOpInterface.h"
2221
#include "mlir/Interfaces/MemorySlotInterfaces.h"

mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ include "mlir/Dialect/Arith/IR/ArithBase.td"
1313
include "mlir/Dialect/MemRef/IR/MemRefBase.td"
1414
include "mlir/Interfaces/CastInterfaces.td"
1515
include "mlir/Interfaces/ControlFlowInterfaces.td"
16-
include "mlir/Interfaces/CopyOpInterface.td"
1716
include "mlir/Interfaces/InferIntRangeInterface.td"
1817
include "mlir/Interfaces/InferTypeOpInterface.td"
1918
include "mlir/Interfaces/MemorySlotInterfaces.td"
@@ -530,7 +529,7 @@ def MemRef_CastOp : MemRef_Op<"cast", [
530529
// CopyOp
531530
//===----------------------------------------------------------------------===//
532531

533-
def CopyOp : MemRef_Op<"copy", [CopyOpInterface, SameOperandsElementType,
532+
def CopyOp : MemRef_Op<"copy", [SameOperandsElementType,
534533
SameOperandsShape]> {
535534

536535
let description = [{

mlir/include/mlir/Interfaces/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
add_mlir_interface(CallInterfaces)
22
add_mlir_interface(CastInterfaces)
33
add_mlir_interface(ControlFlowInterfaces)
4-
add_mlir_interface(CopyOpInterface)
54
add_mlir_interface(DerivedAttributeOpInterface)
65
add_mlir_interface(DestinationStyleOpInterface)
76
add_mlir_interface(FunctionInterfaces)

mlir/include/mlir/Interfaces/CopyOpInterface.h

Lines changed: 0 additions & 21 deletions
This file was deleted.

mlir/include/mlir/Interfaces/CopyOpInterface.td

Lines changed: 0 additions & 38 deletions
This file was deleted.

mlir/lib/Interfaces/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ set(LLVM_OPTIONAL_SOURCES
22
CallInterfaces.cpp
33
CastInterfaces.cpp
44
ControlFlowInterfaces.cpp
5-
CopyOpInterface.cpp
65
DataLayoutInterfaces.cpp
76
DerivedAttributeOpInterface.cpp
87
DestinationStyleOpInterface.cpp
@@ -43,7 +42,6 @@ endfunction(add_mlir_interface_library)
4342
add_mlir_interface_library(CallInterfaces)
4443
add_mlir_interface_library(CastInterfaces)
4544
add_mlir_interface_library(ControlFlowInterfaces)
46-
add_mlir_interface_library(CopyOpInterface)
4745
add_mlir_interface_library(DataLayoutInterfaces)
4846
add_mlir_interface_library(DerivedAttributeOpInterface)
4947
add_mlir_interface_library(DestinationStyleOpInterface)

mlir/lib/Interfaces/CopyOpInterface.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)