[clang] [CIR][OpenMP] Implement lowering for the 'if' clause for 'parallel' d… (PR #204999)

Sergio Afonso via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 16 05:12:42 PDT 2026


================
@@ -84,3 +84,75 @@ void proc_bind_parallel() {
   // CHECK-NEXT: omp.terminator
   // CHECK-NEXT: }
 }
+
+void if_parallel() {
----------------
skatrak wrote:

Nit: We should have a case where an inapplicable `if` condition is passed, like:
```c++
#pragma omp parallel if (simd: validCondition)
{}
```
And check that no `if` clause was added to the `omp.parallel` operation.

https://github.com/llvm/llvm-project/pull/204999


More information about the cfe-commits mailing list