Skip to content

Commit 3006a54

Browse files
Add a todo for taskloop untied clause
1 parent 0a248e7 commit 3006a54

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ static LogicalResult checkImplementationStatus(Operation &op) {
263263
checkDepend(op, result);
264264
checkNowait(op, result);
265265
})
266+
.Case([&](omp::TaskloopOp op) {
267+
// TODO: Add other clauses check
268+
checkUntied(op, result);
269+
})
266270
.Case([&](omp::WsloopOp op) {
267271
checkAllocate(op, result);
268272
checkLinear(op, result);

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,19 @@ llvm.func @taskloop(%lb : i32, %ub : i32, %step : i32) {
510510

511511
// -----
512512

513+
llvm.func @taskloop_untied(%lb : i32, %ub : i32, %step : i32) {
514+
// expected-error@below {{not yet implemented: omp.taskloop}}
515+
// expected-error@below {{LLVM Translation failed for operation: omp.taskloop}}
516+
omp.taskloop untied {
517+
omp.loop_nest (%iv) : i32 = (%lb) to (%ub) step (%step) {
518+
omp.yield
519+
}
520+
}
521+
llvm.return
522+
}
523+
524+
// -----
525+
513526
llvm.func @taskwait_depend(%x: !llvm.ptr) {
514527
// expected-error@below {{not yet implemented: Unhandled clause depend in omp.taskwait operation}}
515528
// expected-error@below {{LLVM Translation failed for operation: omp.taskwait}}

0 commit comments

Comments
 (0)