Skip to content

Commit 64a2be0

Browse files
author
Longsheng Du
committed
remove lower
1 parent 301a894 commit 64a2be0

File tree

7 files changed

+37
-384
lines changed

7 files changed

+37
-384
lines changed

include/gc-dialects/OneDNNGraph/OneDNNGraphOps.td

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -72,39 +72,11 @@ def OneDNNGraph_ReLUOp : OneDNNGraph_ElemwiseUnaryOp<"relu"> {
7272
}];
7373
}
7474

75-
// def OneDNNGraph_ExpOp : OneDNNGraph_ElemwiseUnaryOp<"exp"> {
76-
// let summary = "element-wise exp";
77-
// let description = [{
78-
// `https://spec.oneapi.io/onednn-graph/latest/ops/activation/Exp_1.html`
79-
// }];
80-
// }
81-
8275
def OneDNNGraph_AddOp : OneDNNGraph_ElemwiseBinaryOp<"add", [Commutative]> {
8376
let summary = "element-wise addition with multi-directional broadcast";
8477
let description = [{
8578
`https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Add_1.html`
8679
}];
8780
}
8881

89-
// def OneDNNGraph_SubOp : OneDNNGraph_ElemwiseBinaryOp<"subtract"> {
90-
// let summary = "element-wise subtraction with multi-directional broadcast";
91-
// let description = [{
92-
// `https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Subtract_1.html`
93-
// }];
94-
// }
95-
96-
// def OneDNNGraph_MulOp : OneDNNGraph_ElemwiseBinaryOp<"multiply", [Commutative]> {
97-
// let summary = "element-wise multiplication with multi-directional broadcast";
98-
// let description = [{
99-
// `https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Multiply_1.html`
100-
// }];
101-
// }
102-
103-
// def OneDNNGraph_DivOp : OneDNNGraph_ElemwiseBinaryOp<"divide"> {
104-
// let summary = "element-wise division with multi-directional broadcast";
105-
// let description = [{
106-
// `https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Divide_1.html`
107-
// }];
108-
// }
109-
11082
#endif // ONEDNNGRAPH_OPS

include/gc-dialects/OneDNNGraph/OneDNNGraphTypes.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ def OneDNNGraph_DataType : AnyTypeOf<[
2525
SI<8>,
2626
UI<8>]>;
2727

28-
def OneDNNGraph_FloatDataType : AnyTypeOf<[
29-
F32,
30-
BF16,
31-
F16]>;
32-
3328
def OneDNNGraph_LogicalTensor : TensorOf<[OneDNNGraph_DataType]>;
34-
def OneDNNGraph_FloatLogicalTensor : TensorOf<[OneDNNGraph_FloatDataType]>;
3529

3630
#endif // ONEDNNGRAPH_TYPES

include/gc-dialects/Passes.td

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,4 @@ def TileLinalgNamed : Pass<"tile-named-linalg", "func::FuncOp"> {
1717
["linalg::LinalgDialect", "scf::SCFDialect", "tensor::TensorDialect"];
1818
}
1919

20-
def ConvertOneDNNGraphToLinalg : Pass<"convert-onednn-graph-to-linalg"> {
21-
let summary = "Lower the operations from the oneDNN Graph dialect into Linalg";
22-
let description = [{
23-
Lowers the `onednn_graph` ops to `linalg` ops.
24-
}];
25-
let dependentDialects = [
26-
"func::FuncDialect",
27-
"math::MathDialect",
28-
"arith::ArithDialect",
29-
"tensor::TensorDialect",
30-
"linalg::LinalgDialect"
31-
];
32-
}
33-
3420
#endif // GC_DIALECT_GC_PASSES

lib/gc-dialects/Transforms/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
add_mlir_library(GCPasses
2-
OneDNNGraphToLinalg.cpp
32
TileNamed.cpp
43

54
ADDITIONAL_HEADER_DIRS
@@ -10,7 +9,6 @@ add_mlir_library(GCPasses
109

1110
LINK_LIBS PUBLIC
1211
${mlir_dialect_libs}
13-
MLIROneDNNGraph
1412
MLIRIR
1513
MLIRSupport
1614
MLIRBufferizationToMemRef

lib/gc-dialects/Transforms/OneDNNGraphToLinalg.cpp

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

0 commit comments

Comments
 (0)