From a81672b31af4f8ac6362e983d4e3cffa4eadd1d1 Mon Sep 17 00:00:00 2001 From: Shraiysh Vaishay Date: Mon, 25 Oct 2021 12:37:46 +0530 Subject: [PATCH] [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 --- mlir/test/Target/LLVMIR/openmp-llvm.mlir | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/mlir/test/Target/LLVMIR/openmp-llvm.mlir b/mlir/test/Target/LLVMIR/openmp-llvm.mlir index f1025857de1b..7268f50013ca 100644 --- a/mlir/test/Target/LLVMIR/openmp-llvm.mlir +++ b/mlir/test/Target/LLVMIR/openmp-llvm.mlir @@ -385,6 +385,8 @@ llvm.func @wsloop_simple(%arg0: !llvm.ptr) { llvm.return } +// ----- + // CHECK-LABEL: @wsloop_inclusive_1 llvm.func @wsloop_inclusive_1(%arg0: !llvm.ptr) { %0 = llvm.mlir.constant(42 : index) : i64 @@ -401,6 +403,8 @@ llvm.func @wsloop_inclusive_1(%arg0: !llvm.ptr) { llvm.return } +// ----- + // CHECK-LABEL: @wsloop_inclusive_2 llvm.func @wsloop_inclusive_2(%arg0: !llvm.ptr) { %0 = llvm.mlir.constant(42 : index) : i64 @@ -417,6 +421,8 @@ llvm.func @wsloop_inclusive_2(%arg0: !llvm.ptr) { llvm.return } +// ----- + llvm.func @body(i64) 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) -> () { llvm.return } +// ----- + +llvm.func @body(i64) + llvm.func @test_omp_wsloop_auto(%lb : i64, %ub : i64, %step : i64) -> () { omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(auto) { // CHECK: call void @__kmpc_dispatch_init_8u @@ -443,6 +453,10 @@ llvm.func @test_omp_wsloop_auto(%lb : i64, %ub : i64, %step : i64) -> () { llvm.return } +// ----- + +llvm.func @body(i64) + llvm.func @test_omp_wsloop_runtime(%lb : i64, %ub : i64, %step : i64) -> () { omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(runtime) { // CHECK: call void @__kmpc_dispatch_init_8u @@ -455,6 +469,10 @@ llvm.func @test_omp_wsloop_runtime(%lb : i64, %ub : i64, %step : i64) -> () { llvm.return } +// ----- + +llvm.func @body(i64) + llvm.func @test_omp_wsloop_guided(%lb : i64, %ub : i64, %step : i64) -> () { omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(guided) { // CHECK: call void @__kmpc_dispatch_init_8u @@ -467,6 +485,10 @@ llvm.func @test_omp_wsloop_guided(%lb : i64, %ub : i64, %step : i64) -> () { llvm.return } +// ----- + +llvm.func @body(i64) + llvm.func @test_omp_wsloop_dynamic_nonmonotonic(%lb : i64, %ub : i64, %step : i64) -> () { omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(dynamic, nonmonotonic) { // 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 llvm.return } +// ----- + +llvm.func @body(i64) + llvm.func @test_omp_wsloop_dynamic_monotonic(%lb : i64, %ub : i64, %step : i64) -> () { omp.wsloop (%iv) : i64 = (%lb) to (%ub) step (%step) schedule(dynamic, monotonic) { // CHECK: call void @__kmpc_dispatch_init_8u(%struct.ident_t* @{{.*}}, i32 %{{.*}}, i32 536870947