[llvm-branch-commits] [flang] [mlir] [OpenMP][MLIR] Add num_threads clause with dims modifier support (PR #171767)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 21 02:51:03 PST 2026
================
@@ -516,8 +516,8 @@ bool ClauseProcessor::processNumThreads(
mlir::omp::NumThreadsClauseOps &result) const {
if (auto *clause = findUniqueClause<omp::clause::NumThreads>()) {
// OMPIRBuilder expects `NUM_THREADS` clause as a `Value`.
- result.numThreads =
- fir::getBase(converter.genExprValue(clause->v, stmtCtx));
+ result.numThreadsVars.push_back(
+ fir::getBase(converter.genExprValue(clause->v, stmtCtx)));
----------------
skatrak wrote:
This only adds a single value, how are we supporting the multidimensional case?
https://github.com/llvm/llvm-project/pull/171767
More information about the llvm-branch-commits
mailing list