llvm-project
4f3e35a5 - [flang][OpenMP] Require an enclosing SIMD for construct={simd}

Commit
1 day ago
[flang][OpenMP] Require an enclosing SIMD for construct={simd} A construct={simd} selector without properties was ignored, because SIMD is a predefined trait selector name (it can take clause properties) rather than a directive name. A DECLARE VARIANT or METADIRECTIVE alternative that requires SIMD was therefore selected everywhere, including outside any SIMD construct. Record the SIMD construct trait for such a selector. Lowering builds the construct trait set from the enclosing MLIR operations, so also recognize omp.simd there; otherwise calls inside SIMD would no longer match. Fixes #244759 Assisted-by: GitHub Copilot
Author
Committer
Parents
Loading