@@ -398,29 +398,29 @@ func.func @conditonal_call(%arg0: memref<f32>, %cond: i1) {
398
398
// "caller" -> "call" -> "callee" -> "post"
399
399
400
400
func.func private @callee (%arg0: memref <f32 >) {
401
- // IP: name = "callee"
402
- // IP-SAME-LITERAL: next_access = [ ["post"]]
403
- // LOCAL: name = "callee"
404
- // LOCAL-SAME: next_access = ["unknown"]
401
+ // IP: name = "callee"
402
+ // IP-SAME: next_access = {{\[}} ["post"]]
403
+ // LOCAL: name = "callee"
404
+ // LOCAL-SAME: next_access = ["unknown"]
405
405
memref.load %arg0 [] {name = " callee" } : memref <f32 >
406
406
return
407
407
}
408
408
409
409
// CHECK-LABEL: @call_and_store_before
410
410
func.func @call_and_store_before (%arg0: memref <f32 >) {
411
- // IP: name = "caller"
412
- // IP-SAME-LITERAL: next_access = [ ["call"]]
413
- // LOCAL: name = "caller"
414
- // LOCAL-SAME: next_access = ["unknown"]
415
- // LC_AR: name = "caller"
416
- // LC_AR-SAME: next_access = {{\[}}["call"]]
411
+ // IP: name = "caller"
412
+ // IP-SAME: next_access = {{\[}} ["call"]]
413
+ // LOCAL: name = "caller"
414
+ // LOCAL-SAME: next_access = ["unknown"]
415
+ // LC_AR: name = "caller"
416
+ // LC_AR-SAME: next_access = {{\[}}["call"]]
417
417
memref.load %arg0 [] {name = " caller" } : memref <f32 >
418
418
// Note that the access after the entire call is "post".
419
- // CHECK: name = "call"
420
- // CHECK-SAME-LITERAL : next_access = [ ["post"], ["post"]]
419
+ // CHECK: name = "call"
420
+ // CHECK-SAME: next_access = {{\[}} ["post"], ["post"]]
421
421
test.call_and_store @callee (%arg0 ), %arg0 {name = " call" , store_before_call = true } : (memref <f32 >, memref <f32 >) -> ()
422
- // CHECK: name = "post"
423
- // CHECK-SAME-LITERAL : next_access = ["unknown"]
422
+ // CHECK: name = "post"
423
+ // CHECK-SAME: next_access = ["unknown"]
424
424
memref.load %arg0 [] {name = " post" } : memref <f32 >
425
425
return
426
426
}
@@ -432,28 +432,28 @@ func.func @call_and_store_before(%arg0: memref<f32>) {
432
432
// "caller" -> "callee" -> "call" -> "post"
433
433
434
434
func.func private @callee (%arg0: memref <f32 >) {
435
- // IP: name = "callee"
436
- // IP-SAME-LITERAL: next_access = [ ["call"]]
437
- // LOCAL: name = "callee"
438
- // LOCAL-SAME: next_access = ["unknown"]
435
+ // IP: name = "callee"
436
+ // IP-SAME: next_access = {{\[}} ["call"]]
437
+ // LOCAL: name = "callee"
438
+ // LOCAL-SAME: next_access = ["unknown"]
439
439
memref.load %arg0 [] {name = " callee" } : memref <f32 >
440
440
return
441
441
}
442
442
443
443
// CHECK-LABEL: @call_and_store_after
444
444
func.func @call_and_store_after (%arg0: memref <f32 >) {
445
- // IP: name = "caller"
446
- // IP-SAME-LITERAL: next_access = [ ["callee"]]
447
- // LOCAL: name = "caller"
448
- // LOCAL-SAME: next_access = ["unknown"]
449
- // LC_AR: name = "caller"
450
- // LC_AR-SAME: next_access = {{\[}}["call"]]
445
+ // IP: name = "caller"
446
+ // IP-SAME: next_access = {{\[}} ["callee"]]
447
+ // LOCAL: name = "caller"
448
+ // LOCAL-SAME: next_access = ["unknown"]
449
+ // LC_AR: name = "caller"
450
+ // LC_AR-SAME: next_access = {{\[}}["call"]]
451
451
memref.load %arg0 [] {name = " caller" } : memref <f32 >
452
- // CHECK: name = "call"
453
- // CHECK-SAME-LITERAL : next_access = [ ["post"], ["post"]]
452
+ // CHECK: name = "call"
453
+ // CHECK-SAME: next_access = {{\[}} ["post"], ["post"]]
454
454
test.call_and_store @callee (%arg0 ), %arg0 {name = " call" , store_before_call = false } : (memref <f32 >, memref <f32 >) -> ()
455
- // CHECK: name = "post"
456
- // CHECK-SAME-LITERAL : next_access = ["unknown"]
455
+ // CHECK: name = "post"
456
+ // CHECK-SAME: next_access = ["unknown"]
457
457
memref.load %arg0 [] {name = " post" } : memref <f32 >
458
458
return
459
459
}
@@ -466,12 +466,12 @@ func.func @call_and_store_after(%arg0: memref<f32>) {
466
466
// - at the entry of the block, the next access is "post".
467
467
// CHECK-LABEL: @store_with_a_region
468
468
func.func @store_with_a_region_before (%arg0: memref <f32 >) {
469
- // CHECK: name = "pre"
470
- // CHECK-SAME-LITERAL : next_access = [ ["region"]]
469
+ // CHECK: name = "pre"
470
+ // CHECK-SAME: next_access = {{\[}} ["region"]]
471
471
memref.load %arg0 [] {name = " pre" } : memref <f32 >
472
472
// CHECK: name = "region"
473
- // CHECK-SAME-LITERAL : next_access = [ ["post"]]
474
- // CHECK-SAME-LITERAL : next_at_entry_point = [[ ["post"]]]
473
+ // CHECK-SAME: next_access = {{\[}} ["post"]]
474
+ // CHECK-SAME: next_at_entry_point = {{\[}}{{\[}} ["post"]]]
475
475
test.store_with_a_region %arg0 attributes { name = " region" , store_before_region = true } {
476
476
test.store_with_a_region_terminator
477
477
} : memref <f32 >
@@ -485,12 +485,12 @@ func.func @store_with_a_region_before(%arg0: memref<f32>) {
485
485
// - at the entry of the block, the next access is "region".
486
486
// CHECK-LABEL: @store_with_a_region
487
487
func.func @store_with_a_region_after (%arg0: memref <f32 >) {
488
- // CHECK: name = "pre"
489
- // CHECK-SAME-LITERAL : next_access = [ ["region"]]
488
+ // CHECK: name = "pre"
489
+ // CHECK-SAME: next_access = {{\[}} ["region"]]
490
490
memref.load %arg0 [] {name = " pre" } : memref <f32 >
491
- // CHECK: name = "region"
492
- // CHECK-SAME-LITERAL : next_access = [ ["post"]]
493
- // CHECK-SAME-LITERAL : next_at_entry_point = [[ ["region"]]]
491
+ // CHECK: name = "region"
492
+ // CHECK-SAME: next_access = {{\[}} ["post"]]
493
+ // CHECK-SAME: next_at_entry_point = {{\[}}{{\[}} ["region"]]]
494
494
test.store_with_a_region %arg0 attributes { name = " region" , store_before_region = false } {
495
495
test.store_with_a_region_terminator
496
496
} : memref <f32 >
@@ -509,20 +509,20 @@ func.func @store_with_a_region_after(%arg0: memref<f32>) {
509
509
// That is, the order of access is: "pre" -> "region" -> "inner" -> "post".
510
510
// CHECK-LABEL: @store_with_a_region_before_containing_a_load
511
511
func.func @store_with_a_region_before_containing_a_load (%arg0: memref <f32 >) {
512
- // CHECK: name = "pre"
513
- // CHECK-SAME-LITERAL : next_access = [ ["region"]]
512
+ // CHECK: name = "pre"
513
+ // CHECK-SAME: next_access = {{\[}} ["region"]]
514
514
memref.load %arg0 [] {name = " pre" } : memref <f32 >
515
- // CHECK: name = "region"
516
- // CHECK-SAME-LITERAL : next_access = [ ["post"]]
517
- // CHECK-SAME-LITERAL : next_at_entry_point = [[ ["inner"]]]
515
+ // CHECK: name = "region"
516
+ // CHECK-SAME: next_access = {{\[}} ["post"]]
517
+ // CHECK-SAME: next_at_entry_point = {{\[}}{{\[}} ["inner"]]]
518
518
test.store_with_a_region %arg0 attributes { name = " region" , store_before_region = true } {
519
- // CHECK: name = "inner"
520
- // CHECK-SAME-LITERAL : next_access = [ ["post"]]
519
+ // CHECK: name = "inner"
520
+ // CHECK-SAME: next_access = {{\[}} ["post"]]
521
521
memref.load %arg0 [] {name = " inner" } : memref <f32 >
522
522
test.store_with_a_region_terminator
523
523
} : memref <f32 >
524
- // CHECK: name = "post"
525
- // CHECK-SAME-LITERAL : next_access = ["unknown"]
524
+ // CHECK: name = "post"
525
+ // CHECK-SAME: next_access = ["unknown"]
526
526
memref.load %arg0 [] {name = " post" } : memref <f32 >
527
527
return
528
528
}
@@ -538,20 +538,20 @@ func.func @store_with_a_region_before_containing_a_load(%arg0: memref<f32>) {
538
538
// That is, the order of access is "pre" -> "inner" -> "region" -> "post".
539
539
// CHECK-LABEL: @store_with_a_region_after_containing_a_load
540
540
func.func @store_with_a_region_after_containing_a_load (%arg0: memref <f32 >) {
541
- // CHECK: name = "pre"
542
- // CHECK-SAME-LITERAL : next_access = [ ["inner"]]
541
+ // CHECK: name = "pre"
542
+ // CHECK-SAME: next_access = {{\[}} ["inner"]]
543
543
memref.load %arg0 [] {name = " pre" } : memref <f32 >
544
- // CHECK: name = "region"
545
- // CHECK-SAME-LITERAL : next_access = [ ["post"]]
546
- // CHECK-SAME-LITERAL : next_at_entry_point = [[ ["inner"]]]
544
+ // CHECK: name = "region"
545
+ // CHECK-SAME: next_access = {{\[}} ["post"]]
546
+ // CHECK-SAME: next_at_entry_point = {{\[}}{{\[}} ["inner"]]]
547
547
test.store_with_a_region %arg0 attributes { name = " region" , store_before_region = false } {
548
- // CHECK: name = "inner"
549
- // CHECK-SAME-LITERAL : next_access = [ ["region"]]
548
+ // CHECK: name = "inner"
549
+ // CHECK-SAME: next_access = {{\[}} ["region"]]
550
550
memref.load %arg0 [] {name = " inner" } : memref <f32 >
551
551
test.store_with_a_region_terminator
552
552
} : memref <f32 >
553
- // CHECK: name = "post"
554
- // CHECK-SAME-LITERAL : next_access = ["unknown"]
553
+ // CHECK: name = "post"
554
+ // CHECK-SAME: next_access = ["unknown"]
555
555
memref.load %arg0 [] {name = " post" } : memref <f32 >
556
556
return
557
557
}
0 commit comments