[all-commits] [llvm/llvm-project] d2ced2: [clang][OpenMP] Add AST nodes for opaque block/loo...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Thu Sep 19 07:03:09 PDT 2024


  Branch: refs/heads/users/kparzysz/spr/p02-a02-proto
  Home:   https://github.com/llvm/llvm-project
  Commit: d2ced229d70064f41cdcd5813745081afbedc566
      https://github.com/llvm/llvm-project/commit/d2ced229d70064f41cdcd5813745081afbedc566
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M clang/lib/Sema/SemaExceptionSpec.cpp

  Log Message:
  -----------
  [clang][OpenMP] Add AST nodes for opaque block/loop directives

Add two new AST nodes:
1. `OMPOpaqueBlockDirective` representing an executable directive
not associated with a loop, and
2. `OMPOpaqueLoopDirective` representing an executable directive
associated with a loop.

This is an indermediate step towards treating compound directives as
a sequece of either leaf or composite directives. The break-up of
compound directives into these constituents may be impossible in a
template, since the identity of objects referenced in clauses may
be impossible to establish.
When an executable directive is encountered in a function template, it
will be represented by one of the new AST nodes, depending on its
association. When the template is instantiated, these AST nodes will
replaced with the AST nodes used in non-templates.


  Commit: c260aabbd53d0f1d6506ee5110d8f9482f25a05f
      https://github.com/llvm/llvm-project/commit/c260aabbd53d0f1d6506ee5110d8f9482f25a05f
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M clang/include/clang/AST/OpenMPClause.h
    M clang/include/clang/AST/Stmt.h
    M clang/include/clang/Basic/OpenMPKinds.h
    M clang/include/clang/Sema/SemaOpenMP.h
    M clang/lib/AST/Stmt.cpp
    M clang/lib/Basic/OpenMPKinds.cpp
    M clang/lib/CodeGen/CGStmtOpenMP.cpp
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Sema/CMakeLists.txt
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/lib/Sema/SemaOpenMPExt.cpp
    A clang/lib/Sema/SemaOpenMPExt.h
    M clang/lib/Sema/TreeTransform.h
    M llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h
    M llvm/include/llvm/Frontend/OpenMP/OMP.h
    M llvm/include/llvm/Frontend/OpenMP/OMP.td
    M llvm/lib/Frontend/OpenMP/OMP.cpp

  Log Message:
  -----------
  [clang][OpenMP] Prototype #2 of directive splitting

This is proto #1 minus the introduction of opaque AST nodes.

This isn't 100% finished, but it should be enough to illustrate
the changes needed to implement the feature.

Proto #1: https://github.com/llvm/llvm-project/pull/108855


Compare: https://github.com/llvm/llvm-project/compare/d2ced229d700%5E...c260aabbd53d

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