[all-commits] [llvm/llvm-project] 931c0c: [OpenMP][NFC] Move and simplify directive -> allow...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Sun Apr 5 22:05:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 931c0cd713ee9b082389727bed1b518c6a44344f
      https://github.com/llvm/llvm-project/commit/931c0cd713ee9b082389727bed1b518c6a44344f
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-04-06 (Mon, 06 Apr 2020)

  Changed paths:
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/include/clang/Basic/OpenMPKinds.def
    M clang/include/clang/Basic/OpenMPKinds.h
    M clang/lib/ASTMatchers/Dynamic/CMakeLists.txt
    M clang/lib/Basic/OpenMPKinds.cpp
    M clang/lib/Tooling/CMakeLists.txt
    M clang/lib/Tooling/Transformer/CMakeLists.txt
    M clang/unittests/AST/CMakeLists.txt
    M clang/unittests/ASTMatchers/CMakeLists.txt
    M clang/unittests/ASTMatchers/Dynamic/CMakeLists.txt
    M clang/unittests/Analysis/CMakeLists.txt
    M clang/unittests/Rename/CMakeLists.txt
    M clang/unittests/Sema/CMakeLists.txt
    M clang/unittests/StaticAnalyzer/CMakeLists.txt
    M clang/unittests/Tooling/CMakeLists.txt
    M llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
    M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
    M llvm/lib/Frontend/OpenMP/OMPConstants.cpp

  Log Message:
  -----------
  [OpenMP][NFC] Move and simplify directive -> allowed clause mapping

Move the listing of allowed clauses per OpenMP directive to the new
macro file in `llvm/Frontend/OpenMP`. Also, use a single generic macro
that specifies the directive and one allowed clause explicitly instead
of a dedicated macro per directive.

We save 800 loc and boilerplate for all new directives/clauses with no
functional change. We also need to include the macro file only once and
not once per directive.

Depends on D77112.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D77113




More information about the All-commits mailing list