Skip to content

Commit 591eb9b

Browse files
author
Longsheng Du
committed
update name
1 parent fa5a1e9 commit 591eb9b

17 files changed

+77
-77
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ target_include_directories(graph_compiler PUBLIC ${GC_LIB_INCLUDES})
5151
set(GC_LIB_LINKED_LIBS
5252
MLIRLinalgx
5353
MLIRMicrokernel
54-
MLIROnednnGraph
54+
MLIROneDNNGraph
5555
)
5656
target_link_libraries(graph_compiler PRIVATE ${GC_LIB_LINKED_LIBS})
5757

include/gc-dialects/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
add_subdirectory(OnednnGraph)
1+
add_subdirectory(OneDNNGraph)
22
add_subdirectory(Microkernel)
33
add_subdirectory(Linalgx)
44

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
add_mlir_dialect(OnednnGraphOps onednn_graph)
2-
add_mlir_doc(OnednnGraphOps OnednnGraphOps gc-dialects/OnednnGraph/ -gen-op-doc)
3-
add_mlir_doc(OnednnGraphDialect OnednnGraphDialect gc-dialects/OnednnGraph/ -gen-dialect-doc)
1+
add_mlir_dialect(OneDNNGraphOps onednn_graph)
2+
add_mlir_doc(OneDNNGraphOps OneDNNGraphOps gc-dialects/OneDNNGraph/ -gen-op-doc)
3+
add_mlir_doc(OneDNNGraphDialect OneDNNGraphDialect gc-dialects/OneDNNGraph/ -gen-dialect-doc)

include/gc-dialects/OnednnGraph/OnednnGraphDialect.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphDialect.h - OneDNN input dialect --------------*- C++ -*-===//
1+
//===- OneDNNGraphDialect.h - OneDNN input dialect --------------*- C++ -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,6 +14,6 @@
1414
#include "mlir/IR/OpImplementation.h"
1515

1616
#define GET_OP_CLASSES
17-
#include "gc-dialects/OnednnGraph/OnednnGraphOpsDialect.h.inc"
17+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOpsDialect.h.inc"
1818

1919
#endif // GC_DIALECTS_ONEDNNGRAPHDIALECT_H

include/gc-dialects/OnednnGraph/OnednnGraphDialect.td

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphDialect.td - OneDNN input dialect --------*- tablegen -*-===//
1+
//===- OneDNNGraphDialect.td - OneDNN input dialect --------*- tablegen -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,10 +12,10 @@
1212
include "mlir/IR/OpBase.td"
1313

1414
//===----------------------------------------------------------------------===//
15-
// OnednnGraph dialect definition.
15+
// OneDNNGraph dialect definition.
1616
//===----------------------------------------------------------------------===//
1717

18-
def OnednnGraphDialect : Dialect {
18+
def OneDNNGraphDialect : Dialect {
1919
let name = "onednn_graph";
2020
let summary = "A dialect for oneDNN Graph.";
2121
let description = [{

include/gc-dialects/OnednnGraph/OnednnGraphOps.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphOps.h - OneDNN input dialect ops --------------*- C++ -*-===//
1+
//===- OneDNNGraphOps.h - OneDNN input dialect ops --------------*- C++ -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -18,6 +18,6 @@
1818
#include "mlir/Interfaces/SideEffectInterfaces.h"
1919

2020
#define GET_OP_CLASSES
21-
#include "gc-dialects/OnednnGraph/OnednnGraphOps.h.inc"
21+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOps.h.inc"
2222

2323
#endif // GC_DIALECTS_ONEDNNGRAPHOPS_H

include/gc-dialects/OnednnGraph/OnednnGraphOps.td

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphOps.td - OneDNN input dialect ops --------*- tablegen -*-===//
1+
//===- OneDNNGraphOps.td - OneDNN input dialect ops --------*- tablegen -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -14,93 +14,93 @@ include "mlir/Interfaces/SideEffectInterfaces.td"
1414
include "mlir/Interfaces/DestinationStyleOpInterface.td"
1515
include "mlir/IR/AttrTypeBase.td"
1616
include "mlir/IR/OpBase.td"
17-
include "OnednnGraphDialect.td"
18-
include "OnednnGraphTypes.td"
17+
include "OneDNNGraphDialect.td"
18+
include "OneDNNGraphTypes.td"
1919

2020
//===----------------------------------------------------------------------===//
21-
// Base OnednnGraph operation definition.
21+
// Base OneDNNGraph operation definition.
2222
//===----------------------------------------------------------------------===//
2323

24-
class OnednnGraph_Op<string mnemonic, list<Trait> traits = []> :
25-
Op<OnednnGraphDialect, mnemonic, traits>;
24+
class OneDNNGraph_Op<string mnemonic, list<Trait> traits = []> :
25+
Op<OneDNNGraphDialect, mnemonic, traits>;
2626

27-
class OnednnGraph_ElemwiseBinaryOp<string mnemonic, list<Trait> traits = []> :
28-
OnednnGraph_Op<mnemonic, traits # [SameOperandsAndResultElementType, InferTensorType]> {
29-
let arguments = (ins OnednnGraph_LogicalTensor:$input_0,
30-
OnednnGraph_LogicalTensor:$input_1);
31-
let results = (outs OnednnGraph_LogicalTensor:$result);
27+
class OneDNNGraph_ElemwiseBinaryOp<string mnemonic, list<Trait> traits = []> :
28+
OneDNNGraph_Op<mnemonic, traits # [SameOperandsAndResultElementType, InferTensorType]> {
29+
let arguments = (ins OneDNNGraph_LogicalTensor:$input_0,
30+
OneDNNGraph_LogicalTensor:$input_1);
31+
let results = (outs OneDNNGraph_LogicalTensor:$result);
3232

3333
let assemblyFormat =
3434
"operands attr-dict `:` functional-type(operands, results)";
3535
}
3636

37-
class OnednnGraph_ElemwiseUnaryOp<string mnemonic, list<Trait> traits = []> :
38-
OnednnGraph_Op<mnemonic, traits # [SameOperandsAndResultType]> {
39-
let arguments = (ins OnednnGraph_LogicalTensor:$operand);
40-
let results = (outs OnednnGraph_LogicalTensor:$result);
37+
class OneDNNGraph_ElemwiseUnaryOp<string mnemonic, list<Trait> traits = []> :
38+
OneDNNGraph_Op<mnemonic, traits # [SameOperandsAndResultType]> {
39+
let arguments = (ins OneDNNGraph_LogicalTensor:$operand);
40+
let results = (outs OneDNNGraph_LogicalTensor:$result);
4141

4242
let assemblyFormat =
4343
"operands attr-dict `:` functional-type(operands, results)";
4444
}
4545

4646
//===----------------------------------------------------------------------===//
47-
// OnednnGraph op definitions
47+
// OneDNNGraph op definitions
4848
//===----------------------------------------------------------------------===//
4949

50-
def OnednnGraph_MatMulOp :
51-
OnednnGraph_Op<"matmul", [SameOperandsAndResultElementType, InferTensorTypeAdaptor]> {
50+
def OneDNNGraph_MatMulOp :
51+
OneDNNGraph_Op<"matmul", [SameOperandsAndResultElementType, InferTensorTypeAdaptor]> {
5252
let summary = "Generalized matrix multiplication";
5353
let description = [{
5454
`https://spec.oneapi.io/onednn-graph/latest/ops/matrix/MatMul_1.html`
5555
}];
5656

57-
let arguments = (ins OnednnGraph_LogicalTensor:$input_a,
58-
OnednnGraph_LogicalTensor:$input_b,
59-
Optional<OnednnGraph_LogicalTensor>:$bias,
57+
let arguments = (ins OneDNNGraph_LogicalTensor:$input_a,
58+
OneDNNGraph_LogicalTensor:$input_b,
59+
Optional<OneDNNGraph_LogicalTensor>:$bias,
6060
DefaultValuedAttr<BoolAttr, "false">:$transpose_a,
6161
DefaultValuedAttr<BoolAttr, "false">:$transpose_b);
62-
let results = (outs OnednnGraph_LogicalTensor:$result);
62+
let results = (outs OneDNNGraph_LogicalTensor:$result);
6363

6464
let assemblyFormat =
6565
"operands attr-dict `:` functional-type(operands, results)";
6666
}
6767

68-
def OnednnGraph_ReLUOp : OnednnGraph_ElemwiseUnaryOp<"relu"> {
68+
def OneDNNGraph_ReLUOp : OneDNNGraph_ElemwiseUnaryOp<"relu"> {
6969
let summary = "element-wise relu";
7070
let description = [{
7171
`https://spec.oneapi.io/onednn-graph/latest/ops/activation/ReLU_1.html`
7272
}];
7373
}
7474

75-
// def OnednnGraph_ExpOp : OnednnGraph_ElemwiseUnaryOp<"exp"> {
75+
// def OneDNNGraph_ExpOp : OneDNNGraph_ElemwiseUnaryOp<"exp"> {
7676
// let summary = "element-wise exp";
7777
// let description = [{
7878
// `https://spec.oneapi.io/onednn-graph/latest/ops/activation/Exp_1.html`
7979
// }];
8080
// }
8181

82-
def OnednnGraph_AddOp : OnednnGraph_ElemwiseBinaryOp<"add", [Commutative]> {
82+
def OneDNNGraph_AddOp : OneDNNGraph_ElemwiseBinaryOp<"add", [Commutative]> {
8383
let summary = "element-wise addition with multi-directional broadcast";
8484
let description = [{
8585
`https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Add_1.html`
8686
}];
8787
}
8888

89-
// def OnednnGraph_SubOp : OnednnGraph_ElemwiseBinaryOp<"subtract"> {
89+
// def OneDNNGraph_SubOp : OneDNNGraph_ElemwiseBinaryOp<"subtract"> {
9090
// let summary = "element-wise subtraction with multi-directional broadcast";
9191
// let description = [{
9292
// `https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Subtract_1.html`
9393
// }];
9494
// }
9595

96-
// def OnednnGraph_MulOp : OnednnGraph_ElemwiseBinaryOp<"multiply", [Commutative]> {
96+
// def OneDNNGraph_MulOp : OneDNNGraph_ElemwiseBinaryOp<"multiply", [Commutative]> {
9797
// let summary = "element-wise multiplication with multi-directional broadcast";
9898
// let description = [{
9999
// `https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Multiply_1.html`
100100
// }];
101101
// }
102102

103-
// def OnednnGraph_DivOp : OnednnGraph_ElemwiseBinaryOp<"divide"> {
103+
// def OneDNNGraph_DivOp : OneDNNGraph_ElemwiseBinaryOp<"divide"> {
104104
// let summary = "element-wise division with multi-directional broadcast";
105105
// let description = [{
106106
// `https://spec.oneapi.io/onednn-graph/latest/ops/arithmetic/Divide_1.html`

include/gc-dialects/OnednnGraph/OnednnGraphTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphTypes.h - OneDNN input dialect types ----------*- C++ -*-===//
1+
//===- OneDNNGraphTypes.h - OneDNN input dialect types ----------*- C++ -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,6 +12,6 @@
1212
#include "mlir/IR/BuiltinTypes.h"
1313

1414
#define GET_TYPEDEF_CLASSES
15-
#include "gc-dialects/OnednnGraph/OnednnGraphOpsTypes.h.inc"
15+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOpsTypes.h.inc"
1616

1717
#endif // ONEDNNGRAPH_ONEDNNGRAPHTYPES_H
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphTypes.h - OneDNN input dialect types -----*- tablegen -*-===//
1+
//===- OneDNNGraphTypes.h - OneDNN input dialect types -----*- tablegen -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,26 +11,26 @@
1111

1212
include "mlir/IR/BuiltinTypes.td"
1313
include "mlir/IR/AttrTypeBase.td"
14-
include "OnednnGraphDialect.td"
14+
include "OneDNNGraphDialect.td"
1515

1616
//===----------------------------------------------------------------------===//
17-
// OnednnGraph type definitions
17+
// OneDNNGraph type definitions
1818
//===----------------------------------------------------------------------===//
1919

20-
def OnednnGraph_DataType : AnyTypeOf<[
20+
def OneDNNGraph_DataType : AnyTypeOf<[
2121
F16,
2222
BF16,
2323
F32,
2424
SI<32>,
2525
SI<8>,
2626
UI<8>]>;
2727

28-
def OnednnGraph_FloatDataType : AnyTypeOf<[
28+
def OneDNNGraph_FloatDataType : AnyTypeOf<[
2929
F32,
3030
BF16,
3131
F16]>;
3232

33-
def OnednnGraph_LogicalTensor : TensorOf<[OnednnGraph_DataType]>;
34-
def OnednnGraph_FloatLogicalTensor : TensorOf<[OnednnGraph_FloatDataType]>;
33+
def OneDNNGraph_LogicalTensor : TensorOf<[OneDNNGraph_DataType]>;
34+
def OneDNNGraph_FloatLogicalTensor : TensorOf<[OneDNNGraph_FloatDataType]>;
3535

3636
#endif // ONEDNNGRAPH_TYPES

include/gc-dialects/Passes.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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"> {
20+
def ConvertOneDNNGraphToLinalg : Pass<"convert-onednn-graph-to-linalg"> {
2121
let summary = "Lower the operations from the oneDNN Graph dialect into Linalg";
2222
let description = [{
2323
Lowers the `onednn_graph` ops to `linalg` ops.

lib/gc-dialects/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
add_subdirectory(Linalgx)
22
add_subdirectory(Microkernel)
3-
add_subdirectory(OnednnGraph)
3+
add_subdirectory(OneDNNGraph)
44

55
add_subdirectory(Transforms)

lib/gc-dialects/OnednnGraph/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
add_mlir_dialect_library(MLIROnednnGraph
2-
OnednnGraphDialect.cpp
3-
OnednnGraphOps.cpp
1+
add_mlir_dialect_library(MLIROneDNNGraph
2+
OneDNNGraphDialect.cpp
3+
OneDNNGraphOps.cpp
44

55
ADDITIONAL_HEADER_DIRS
6-
${PROJECT_SOURCE_DIR}/include/gc-dialects/OnednnGraph
6+
${PROJECT_SOURCE_DIR}/include/gc-dialects/OneDNNGraph
77

88
DEPENDS
9-
MLIROnednnGraphOpsIncGen
9+
MLIROneDNNGraphOpsIncGen
1010

1111
LINK_LIBS PUBLIC
1212
MLIRIR

lib/gc-dialects/OnednnGraph/OnednnGraphDialect.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
//===- OnednnGraphDialect.h - OneDNN input dialect --------------*- C++ -*-===//
1+
//===- OneDNNGraphDialect.h - OneDNN input dialect --------------*- C++ -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "gc-dialects/OnednnGraph/OnednnGraphDialect.h"
10-
#include "gc-dialects/OnednnGraph/OnednnGraphOps.h"
11-
#include "gc-dialects/OnednnGraph/OnednnGraphTypes.h"
9+
#include "gc-dialects/OneDNNGraph/OneDNNGraphDialect.h"
10+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOps.h"
11+
#include "gc-dialects/OneDNNGraph/OneDNNGraphTypes.h"
1212

1313
#include "mlir/Dialect/Quant/QuantOps.h"
1414
#include "mlir/Dialect/Tensor/IR/Tensor.h"
@@ -30,15 +30,15 @@
3030
using namespace mlir;
3131
using namespace mlir::onednn_graph;
3232

33-
#include "gc-dialects/OnednnGraph/OnednnGraphOpsDialect.cpp.inc"
33+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOpsDialect.cpp.inc"
3434

3535
//===----------------------------------------------------------------------===//
36-
// OnednnGraph dialect.
36+
// OneDNNGraph dialect.
3737
//===----------------------------------------------------------------------===//
3838

39-
void OnednnGraphDialect::initialize() {
39+
void OneDNNGraphDialect::initialize() {
4040
addOperations<
4141
#define GET_OP_LIST
42-
#include "gc-dialects/OnednnGraph/OnednnGraphOps.cpp.inc"
42+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOps.cpp.inc"
4343
>();
4444
}

lib/gc-dialects/OnednnGraph/OnednnGraphOps.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
//===- OnednnGraphOps.h - OneDNN input dialect ops --------------*- C++ -*-===//
1+
//===- OneDNNGraphOps.h - OneDNN input dialect ops --------------*- C++ -*-===//
22
//
33
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#include "gc-dialects/OnednnGraph/OnednnGraphOps.h"
10-
#include "gc-dialects/OnednnGraph/OnednnGraphDialect.h"
9+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOps.h"
10+
#include "gc-dialects/OneDNNGraph/OneDNNGraphDialect.h"
1111
#include "mlir/IR/OpImplementation.h"
1212
#include "llvm/Support/Debug.h"
1313

1414
#define GET_OP_CLASSES
15-
#include "gc-dialects/OnednnGraph/OnednnGraphOps.cpp.inc"
15+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOps.cpp.inc"
1616

1717
namespace mlir {
1818
namespace onednn_graph {

lib/gc-dialects/Transforms/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
add_mlir_library(GCPasses
2-
OnednnGraphToLinalg.cpp
2+
OneDNNGraphToLinalg.cpp
33
TileNamed.cpp
44

55
ADDITIONAL_HEADER_DIRS
@@ -10,7 +10,7 @@ add_mlir_library(GCPasses
1010

1111
LINK_LIBS PUBLIC
1212
${mlir_dialect_libs}
13-
MLIROnednnGraph
13+
MLIROneDNNGraph
1414
MLIRIR
1515
MLIRSupport
1616
MLIRBufferizationToMemRef

lib/gc-dialects/Transforms/OnednnGraphToLinalg.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OnednnGraphToLinalg.cpp - OneDNN Graph To Linalg Lowering --*- C++ -*-=//
1+
//===- OneDNNGraphToLinalg.cpp - OneDNN Graph To Linalg Lowering --*- C++ -*-=//
22
//-*-===//
33
//
44
// This file is licensed under the Apache License v2.0 with LLVM Exceptions.
@@ -10,8 +10,8 @@
1010
#include <numeric>
1111
#include <vector>
1212

13-
#include "gc-dialects/OnednnGraph/OnednnGraphDialect.h"
14-
#include "gc-dialects/OnednnGraph/OnednnGraphOps.h"
13+
#include "gc-dialects/OneDNNGraph/OneDNNGraphDialect.h"
14+
#include "gc-dialects/OneDNNGraph/OneDNNGraphOps.h"
1515
#include "gc-dialects/Passes.h"
1616
#include "mlir/Dialect/Func/IR/FuncOps.h"
1717
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
@@ -270,8 +270,8 @@ struct MatMulOpLowering : public OpRewritePattern<MatMulOp> {
270270
// Pass define
271271
//===----------------------------------------------------------------------===//
272272

273-
struct ConvertOnednnGraphToLinalg
274-
: public impl::ConvertOnednnGraphToLinalgBase<ConvertOnednnGraphToLinalg> {
273+
struct ConvertOneDNNGraphToLinalg
274+
: public impl::ConvertOneDNNGraphToLinalgBase<ConvertOneDNNGraphToLinalg> {
275275

276276
void runOnOperation() final {
277277
//

0 commit comments

Comments
 (0)