[Mlir-commits] [mlir] 1990626 - [mlir] (NFC) Use assembly format for test.graph_region
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed May 11 21:19:37 PDT 2022
Author: Mogball
Date: 2022-05-12T04:19:25Z
New Revision: 19906262c9cc789d121dd67c466c257ae6b849a9
URL: https://github.com/llvm/llvm-project/commit/19906262c9cc789d121dd67c466c257ae6b849a9
DIFF: https://github.com/llvm/llvm-project/commit/19906262c9cc789d121dd67c466c257ae6b849a9.diff
LOG: [mlir] (NFC) Use assembly format for test.graph_region
Added:
Modified:
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/test/lib/Dialect/Test/TestOps.td
Removed:
################################################################################
diff --git a/mlir/test/lib/Dialect/Test/TestDialect.cpp b/mlir/test/lib/Dialect/Test/TestDialect.cpp
index d319363a71ea..c0948020cf1c 100644
--- a/mlir/test/lib/Dialect/Test/TestDialect.cpp
+++ b/mlir/test/lib/Dialect/Test/TestDialect.cpp
@@ -723,17 +723,6 @@ RegionKind SSACFGRegionOp::getRegionKind(unsigned index) {
// Test GraphRegionOp
//===----------------------------------------------------------------------===//
-ParseResult GraphRegionOp::parse(OpAsmParser &parser, OperationState &result) {
- // Parse the body region, and reuse the operand info as the argument info.
- Region *body = result.addRegion();
- return parser.parseRegion(*body, /*arguments=*/{}, /*argTypes=*/{});
-}
-
-void GraphRegionOp::print(OpAsmPrinter &p) {
- p << "test.graph_region ";
- p.printRegion(getRegion(), /*printEntryBlockArgs=*/false);
-}
-
RegionKind GraphRegionOp::getRegionKind(unsigned index) {
return RegionKind::Graph;
}
diff --git a/mlir/test/lib/Dialect/Test/TestOps.td b/mlir/test/lib/Dialect/Test/TestOps.td
index 5ace00169546..b25ccc21e936 100644
--- a/mlir/test/lib/Dialect/Test/TestOps.td
+++ b/mlir/test/lib/Dialect/Test/TestOps.td
@@ -1790,7 +1790,7 @@ def GraphRegionOp : TEST_Op<"graph_region", [
}];
let regions = (region AnyRegion:$region);
- let hasCustomAssemblyFormat = 1;
+ let assemblyFormat = "attr-dict-with-keyword $region";
}
def AffineScopeOp : TEST_Op<"affine_scope", [AffineScope]> {
More information about the Mlir-commits
mailing list