[all-commits] [llvm/llvm-project] fd016b: [Clang][OpenMP] Add `#pragma omp flatten` loop dir...

Amit Tiwari via All-commits all-commits at lists.llvm.org
Tue Sep 22 08:17:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd016b7d24d3a2ddabef9e1ebfc702885e9bb7c1
      https://github.com/llvm/llvm-project/commit/fd016b7d24d3a2ddabef9e1ebfc702885e9bb7c1
  Author: Amit Tiwari <Amit.Tiwari at amd.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M clang/bindings/python/clang/cindex.py
    M clang/docs/OpenMPSupport.md
    M clang/docs/ReleaseNotes.md
    M clang/include/clang-c/Index.h
    M clang/include/clang/AST/OpenMPClause.h
    M clang/include/clang/AST/RecursiveASTVisitor.h
    M clang/include/clang/AST/StmtOpenMP.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/StmtNodes.td
    M clang/include/clang/Sema/SemaOpenMP.h
    M clang/include/clang/Serialization/ASTBitCodes.h
    M clang/lib/AST/OpenMPClause.cpp
    M clang/lib/AST/StmtOpenMP.cpp
    M clang/lib/AST/StmtPrinter.cpp
    M clang/lib/AST/StmtProfile.cpp
    M clang/lib/Basic/OpenMPKinds.cpp
    M clang/lib/CIR/CodeGen/CIRGenFunction.h
    M clang/lib/CIR/CodeGen/CIRGenStmt.cpp
    M clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Sema/SemaExceptionSpec.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderStmt.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/ASTWriterStmt.cpp
    M clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
    A clang/test/Index/openmp-flatten.c
    A clang/test/OpenMP/flatten_ast_print.cpp
    A clang/test/OpenMP/flatten_codegen.cpp
    A clang/test/OpenMP/flatten_codegen_for.cpp
    A clang/test/OpenMP/flatten_depth_ast_print.cpp
    A clang/test/OpenMP/flatten_depth_codegen.cpp
    A clang/test/OpenMP/flatten_depth_messages.cpp
    A clang/test/OpenMP/flatten_messages.cpp
    A clang/test/OpenMP/flatten_serialize_module.cpp
    A clang/test/OpenMP/fuse_depth_messages.cpp
    M clang/tools/libclang/CIndex.cpp
    M clang/tools/libclang/CXCursor.cpp
    M llvm/include/llvm/Frontend/OpenMP/OMP.td
    A openmp/runtime/test/transform/flatten/depth-intfor.c
    A openmp/runtime/test/transform/flatten/depth-partial.c
    A openmp/runtime/test/transform/flatten/empty.c
    A openmp/runtime/test/transform/flatten/final-values.c
    A openmp/runtime/test/transform/flatten/foreach.cpp
    A openmp/runtime/test/transform/flatten/intfor.c
    A openmp/runtime/test/transform/flatten/overflow-empty.c
    A openmp/runtime/test/transform/flatten/parallel-wsloop-foreach.cpp
    A openmp/runtime/test/transform/flatten/parallel-wsloop-intfor.c
    A openmp/runtime/test/transform/flatten/reverse-on-flatten.c
    A openmp/runtime/test/transform/flatten/tile-on-flatten.c
    A openmp/runtime/test/transform/flatten/unroll-on-flatten.c

  Log Message:
  -----------
  [Clang][OpenMP] Add `#pragma omp flatten` loop directive + `depth` clause (#206977)

Adds the OpenMP 6.1:  `Flatten Construct` + `depth Clause`.
Referred in Section 17.4 and Section 6.4.7 respectively in [Technical
Report 15](https://www.openmp.org/wp-content/uploads/openmp-TR15.pdf)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list