Skip to content

Commit 006d927

Browse files
committed
Update ir.c
1 parent c5787ec commit 006d927

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

mlir/test/CAPI/ir.c

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,21 +2444,15 @@ int testBlockPredecessorsSuccessors(MlirContext ctx) {
24442444
// CHECK-LABEL: @testBlockPredecessorsSuccessors
24452445
fprintf(stderr, "@testBlockPredecessorsSuccessors\n");
24462446

2447-
const char *moduleString = R"""(
2448-
#loc2 = loc("arg1")
2449-
#loc3 = loc("middle")
2450-
#loc4 = loc("successor")
2451-
module {
2452-
func.func @test(%arg0: i32 loc("arg0"), %arg1: i16 loc("arg1")) {
2453-
cf.br ^bb1(%arg1 : i16) loc(#loc)
2454-
^bb1(%0: i16 loc("middle")): // pred: ^bb0
2455-
cf.br ^bb2(%arg0 : i32) loc(#loc)
2456-
^bb2(%1: i32 loc("successor")): // pred: ^bb1
2457-
return loc(#loc)
2458-
} loc(#loc)
2459-
} loc(#loc)
2460-
#loc = loc(unknown)
2461-
)""";
2447+
const char *moduleString = "module {\n"
2448+
" func.func @test(%arg0: i32, %arg1: i16) {\n"
2449+
" cf.br ^bb1(%arg1 : i16)\n"
2450+
" ^bb1(%0: i16): // pred: ^bb0\n"
2451+
" cf.br ^bb2(%arg0 : i32)\n"
2452+
" ^bb2(%1: i32): // pred: ^bb1\n"
2453+
" return\n"
2454+
" }\n"
2455+
"}\n";
24622456

24632457
MlirModule module =
24642458
mlirModuleCreateParse(ctx, mlirStringRefCreateFromCString(moduleString));

0 commit comments

Comments
 (0)