[Mlir-commits] [flang] [mlir] [Flang][MLIR] Add `!$omp unroll` and `omp.unroll_heuristic` (PR #144785)
Michael Kruse
llvmlistbot at llvm.org
Fri Jun 20 05:12:36 PDT 2025
================
@@ -3516,12 +3671,9 @@ static void genOMPDispatch(lower::AbstractConverter &converter,
newOp = genTeamsOp(converter, symTable, stmtCtx, semaCtx, eval, loc, queue,
item);
break;
- case llvm::omp::Directive::OMPD_tile:
- case llvm::omp::Directive::OMPD_unroll: {
- unsigned version = semaCtx.langOptions().OpenMPVersion;
- TODO(loc, "Unhandled loop directive (" +
- llvm::omp::getOpenMPDirectiveName(dir, version) + ")");
- }
+ case llvm::omp::Directive::OMPD_unroll:
+ genUnrollOp(converter, symTable, stmtCtx, semaCtx, eval, loc, queue, item);
+ break;
----------------
Meinersbur wrote:
This PR intends to only implement one of the simplest directives for now: `omp unroll`. As outlined in the summary, full feature support requires significantly more work. I was working on it, but was aleady taking forever.
https://github.com/llvm/llvm-project/pull/144785
More information about the Mlir-commits
mailing list