Skip to content

Commit d90443b

Browse files
committedJun 23, 2020
[openmp] Base of tablegen generated OpenMP common declaration
Summary: As discussed previously when landing patch for OpenMP in Flang, the idea is to share common part of the OpenMP declaration between the different Frontend. While doing this it was thought that moving to tablegen instead of Macros will also give a cleaner and more powerful way of generating these declaration. This first part of a future series of patches is setting up the base .td file for DirectiveLanguage as well as the OpenMP version of it. The base file is meant to be used by other directive language such as OpenACC. In this first patch, the Directive and Clause enums are generated with tablegen instead of the macros on OMPConstants.h. The next pacth will extend this to other enum and move the Flang frontend to use it. Reviewers: jdoerfert, DavidTruby, fghanim, ABataev, jdenny, hfinkel, jhuber6, kiranchandramohan, kiranktp Reviewed By: jdoerfert, jdenny Subscribers: arphaman, martong, cfe-commits, mgorny, yaxunl, hiraditya, guansong, jfb, sstefan1, aaron.ballman, llvm-commits Tags: #llvm, #openmp, #clang Differential Revision: https://reviews.llvm.org/D81736
1 parent 3f353a2 commit d90443b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1145
-343
lines changed
 

‎clang/lib/ARCMigrate/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,7 @@ add_clang_library(clangARCMigrate
3434
clangRewrite
3535
clangSema
3636
clangSerialization
37+
38+
DEPENDS
39+
omp_gen
3740
)

‎clang/lib/AST/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,5 @@ add_clang_library(clangAST
119119

120120
DEPENDS
121121
Opcodes
122+
omp_gen
122123
)

0 commit comments

Comments
 (0)
Please sign in to comment.