Skip to content

Commit bccf326

Browse files
author
Xu, Xiaohui1
committed
init
1 parent f40e433 commit bccf326

File tree

6 files changed

+1609
-0
lines changed

6 files changed

+1609
-0
lines changed

include/gc/Transforms/Passes.td

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,34 @@ def ConvertOneDNNGraphToLinalg : Pass<"convert-onednn-graph-to-linalg"> {
3131
];
3232
}
3333

34+
def LowerToTileVector : Pass<"lower-to-tile-vector"> {
35+
let summary = "Lower tensor to tile vector.";
36+
let description = [{
37+
Lower tensor to tile vector form.
38+
}];
39+
let dependentDialects = [
40+
"::mlir::func::FuncDialect",
41+
"::mlir::math::MathDialect",
42+
"::mlir::arith::ArithDialect",
43+
"::mlir::tensor::TensorDialect",
44+
"::mlir::linalg::LinalgDialect",
45+
"::mlir::vector::VectorDialect",
46+
];
47+
}
48+
49+
def CPUPhysicalRegisterPass : Pass<"CPU-physical-register-pass", "func::FuncOp"> {
50+
let summary = "Lower operation to cpu pysical register size.";
51+
let description = [{
52+
Physical register size lowering pass.
53+
}];
54+
let dependentDialects = [
55+
"::mlir::func::FuncDialect",
56+
"::mlir::math::MathDialect",
57+
"::mlir::arith::ArithDialect",
58+
"::mlir::tensor::TensorDialect",
59+
"::mlir::vector::VectorDialect",
60+
"::mlir::scf::SCFDialect",
61+
];
62+
}
63+
3464
#endif // GC_DIALECT_GC_PASSES

lib/gc/Transforms/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ gc_set_mlir_link_components(MLIR_LINK_COMPONENTS
77
add_mlir_library(GCPasses
88
OneDNNGraphToLinalg.cpp
99
TileNamed.cpp
10+
LowerTileVectorPass.cpp
11+
CPUPhysicalResigterPass.cpp
1012

1113
ADDITIONAL_HEADER_DIRS
1214
${PROJECT_SOURCE_DIR}/include

0 commit comments

Comments
 (0)