Skip to content

Commit a81672b

Browse files
committed
[NFC][MLIR][OpenMP] Splitting the WsLoop tests.
Splitting the WsLoop tests they were getting harder to debug with the offsets over 100 for some of them. Reviewed By: clementval Differential Revision: https://reviews.llvm.org/D112407
1 parent 3729a5a commit a81672b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

mlir/test/Target/LLVMIR/openmp-llvm.mlir

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ llvm.func @wsloop_simple(%arg0: !llvm.ptr<f32>) {
385385
llvm.return
386386
}
387387

388+
// -----
389+
388390
// CHECK-LABEL: @wsloop_inclusive_1
389391
llvm.func @wsloop_inclusive_1(%arg0: !llvm.ptr<f32>) {
390392
%0 = llvm.mlir.constant(42 : index) : i64
@@ -401,6 +403,8 @@ llvm.func @wsloop_inclusive_1(%arg0: !llvm.ptr<f32>) {
401403
llvm.return
402404
}
403405

406+
// -----
407+
404408
// CHECK-LABEL: @wsloop_inclusive_2
405409
llvm.func @wsloop_inclusive_2(%arg0: !llvm.ptr<f32>) {
406410
%0 = llvm.mlir.constant(42 : index) : i64
@@ -417,6 +421,8 @@ llvm.func @wsloop_inclusive_2(%arg0: !llvm.ptr<f32>) {
417421
llvm.return
418422
}
419423

424+
// -----
425+
420426
llvm.func @body(i64)
421427

422428
llvm.func @test_omp_wsloop_dynamic(%lb : i64, %ub : i64, %step : i64) -> () {
@@ -431,6 +437,10 @@ llvm.func @test_omp_wsloop_dynamic(%lb : i64, %ub : i64, %step : i64) -> () {
431437
llvm.return
432438
}
433439

440+
// -----
441+
442+
llvm.func @body(i64)
443+
434444
llvm.func @test_omp_wsloop_auto(%lb : i64, %ub : i64, %step : i64) -> () {
435445
omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(auto) {
436446
// CHECK: call void @__kmpc_dispatch_init_8u
@@ -443,6 +453,10 @@ llvm.func @test_omp_wsloop_auto(%lb : i64, %ub : i64, %step : i64) -> () {
443453
llvm.return
444454
}
445455

456+
// -----
457+
458+
llvm.func @body(i64)
459+
446460
llvm.func @test_omp_wsloop_runtime(%lb : i64, %ub : i64, %step : i64) -> () {
447461
omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(runtime) {
448462
// CHECK: call void @__kmpc_dispatch_init_8u
@@ -455,6 +469,10 @@ llvm.func @test_omp_wsloop_runtime(%lb : i64, %ub : i64, %step : i64) -> () {
455469
llvm.return
456470
}
457471

472+
// -----
473+
474+
llvm.func @body(i64)
475+
458476
llvm.func @test_omp_wsloop_guided(%lb : i64, %ub : i64, %step : i64) -> () {
459477
omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(guided) {
460478
// CHECK: call void @__kmpc_dispatch_init_8u
@@ -467,6 +485,10 @@ llvm.func @test_omp_wsloop_guided(%lb : i64, %ub : i64, %step : i64) -> () {
467485
llvm.return
468486
}
469487

488+
// -----
489+
490+
llvm.func @body(i64)
491+
470492
llvm.func @test_omp_wsloop_dynamic_nonmonotonic(%lb : i64, %ub : i64, %step : i64) -> () {
471493
omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(dynamic, nonmonotonic) {
472494
// CHECK: call void @__kmpc_dispatch_init_8u(%struct.ident_t* @{{.*}}, i32 %{{.*}}, i32 1073741859
@@ -479,6 +501,10 @@ llvm.func @test_omp_wsloop_dynamic_nonmonotonic(%lb : i64, %ub : i64, %step : i6
479501
llvm.return
480502
}
481503

504+
// -----
505+
506+
llvm.func @body(i64)
507+
482508
llvm.func @test_omp_wsloop_dynamic_monotonic(%lb : i64, %ub : i64, %step : i64) -> () {
483509
omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(dynamic, monotonic) {
484510
// CHECK: call void @__kmpc_dispatch_init_8u(%struct.ident_t* @{{.*}}, i32 %{{.*}}, i32 536870947

0 commit comments

Comments
 (0)