[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
================
@@ -39,10 +39,11 @@ CIRGenFunction::emitOMPParallelDirective(const OMPParallelDirective &s) {
mlir::omp::ParallelOperands clauseOps;
OpenMPClauseEmitter ce(*this, getCIRGenModule(), builder, begin, s.clauses());
ce.emitProcBind(clauseOps);
- ce.emitNYI</*supported=*/OMPProcBindClause>(
+ ce.emitIf(clauseOps, llvm::omp::Directive::OMPD_parallel);
----------------
skatrak wrote:
Nit: We evaluate clauses in alphabetical order for consistency in Flang, unless there's some evaluation ordering requirement between them. I think it makes sense to follow that convention here as well. This one would go before `proc_bind`.
https://github.com/llvm/llvm-project/pull/204999
More information about the cfe-commits
mailing list