[clang] [llvm] [openmp] [Clang][OpenMP] Add `#pragma omp flatten` loop directive + `depth` clause (PR #206977)

Michael Kruse via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 26 04:18:34 PDT 2026


================
@@ -0,0 +1,67 @@
+// Check that the loop generated by 'flatten' can be consumed by a loop
+// associated directive ('omp for' / 'omp parallel for'), and that signed and
+// unsigned induction variables generate signed/unsigned division.
+
+// RUN: %clang_cc1 -verify -triple x86_64-pc-linux-gnu -std=c++20 -fopenmp -fopenmp-version=60 -emit-llvm %s -o - | FileCheck %s
----------------
Meinersbur wrote:

```suggestion
// RUN: %clang_cc1 -verify -triple x86_64-pc-linux-gnu -std=c++20 -fopenmp -fopenmp-version=61 -emit-llvm %s -o - | FileCheck %s
```

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


More information about the cfe-commits mailing list