[clang] [CIR][OpenMP] Add support for the OpenMP 'for' directive (PR #229256)
Jan Leyonberg via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 11:48:49 PST 2026
================
@@ -0,0 +1,228 @@
+// RUN: %clang_cc1 -fopenmp -emit-cir -fclangir %s -o - | FileCheck %s --check-prefix=CIR
+
+void during(int);
+int getLB(void);
+
+// All the loop forms below normalize to an omp.loop_nest iterating a
+// `[0, tripCount)` range, where tripCount is computed from the original
+// bounds/step.
----------------
jsjodin wrote:
Yes, this should be checked closer. This was initially just to make sure nothing crashed, which was the reason I added all the variations. Fixed!
https://github.com/llvm/llvm-project/pull/229256
More information about the cfe-commits
mailing list