[Mlir-commits] [mlir] [OpenMP][MLIR] Add num_teams mlir to llvm lowering (PR #179418)

Sergio Afonso llvmlistbot at llvm.org
Thu Apr 9 04:00:38 PDT 2026


================

----------------
skatrak wrote:

`omp.teams` constructs nested inside of a target region must be directly nested inside of the `omp.target`, with no other regions in between. This is ensured by the op verifier.

```suggestion
    if (op.hasNumTeamsMultiDim() && !isa_and_present<omp::TargetOp>(op->getParentOp())) {
      result = todo (...);
```

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


More information about the Mlir-commits mailing list