llvm-project
18e4f3be - [flang][OpenMP] Add parallel loop to loop directive parser set (#193621)

Commit
33 days ago
[flang][OpenMP] Add parallel loop to loop directive parser set (#193621) Add `OMPD_parallel_loop` to `GetLoopDirectives()` in the Flang OpenMP parser so that the valid OpenMP 5.0 combined construct `!$omp parallel loop` is recognized as a loop construct. Previously, the parser failed to match `parallel loop` as a loop directive. It then fell through to matching `parallel` as a block construct, leaving `loop` as an unexpected token, producing: ``` error: expected OpenMP construct !$omp parallel loop ^ ``` The directive was already fully defined in OMP.td and handled in the semantics directive sets, lowering, and MLIR `GenericLoopConversion` passes. Only the parser set was missing the entry. Fixes #193101 Assisted-by: Claude Opus 4.6. Co-authored-by: Matt P. Dziubinski <matt-p.dziubinski@hpe.com>
Author
Parents
Loading