Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/Dialect/OpenMP/ops.mlir
Show First 20 Lines • Show All 392 Lines • ▼ Show 20 Lines | |||||
func.func @omp_simdloop_pretty_if(%lb : index, %ub : index, %step : index, %if_cond : i1) -> () { | func.func @omp_simdloop_pretty_if(%lb : index, %ub : index, %step : index, %if_cond : i1) -> () { | ||||
// CHECK: omp.simdloop if(%{{.*}}) for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) | // CHECK: omp.simdloop if(%{{.*}}) for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) | ||||
omp.simdloop if(%if_cond) for (%iv): index = (%lb) to (%ub) step (%step) { | omp.simdloop if(%if_cond) for (%iv): index = (%lb) to (%ub) step (%step) { | ||||
omp.yield | omp.yield | ||||
} | } | ||||
return | return | ||||
} | } | ||||
// CHECK-LABEL: omp_simdloop_pretty_order | |||||
func.func @omp_simdloop_pretty_order(%lb : index, %ub : index, %step : index) -> () { | |||||
// CHECK: omp.simdloop order(concurrent) | |||||
// CHECK-SAME: for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) | |||||
omp.simdloop order(concurrent) for (%iv): index = (%lb) to (%ub) step (%step) { | |||||
omp.yield | |||||
} | |||||
return | |||||
} | |||||
// CHECK-LABEL: omp_simdloop_pretty_simdlen | // CHECK-LABEL: omp_simdloop_pretty_simdlen | ||||
func.func @omp_simdloop_pretty_simdlen(%lb : index, %ub : index, %step : index) -> () { | func.func @omp_simdloop_pretty_simdlen(%lb : index, %ub : index, %step : index) -> () { | ||||
// CHECK: omp.simdloop simdlen(2) for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) | // CHECK: omp.simdloop simdlen(2) for (%{{.*}}) : index = (%{{.*}}) to (%{{.*}}) step (%{{.*}}) | ||||
omp.simdloop simdlen(2) for (%iv): index = (%lb) to (%ub) step (%step) { | omp.simdloop simdlen(2) for (%iv): index = (%lb) to (%ub) step (%step) { | ||||
omp.yield | omp.yield | ||||
} | } | ||||
return | return | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,380 Lines • Show Last 20 Lines |