Skip to content

Commit

Permalink
[OpenMP] Add Additional Function Attribute Information to OMPKinds.def
Browse files Browse the repository at this point in the history
Summary:
This patch adds more function attribute information to the runtime function definitions in OMPKinds.def. The goal is to provide sufficient information about OpenMP runtime functions to perform more optimizations on OpenMP code.

Reviewers: jdoerfert

Subscribers: aaron.ballman cfe-commits yaxunl guansong sstefan1 llvm-commits

Tags: #OpenMP #clang #LLVM

Differential Revision: https://reviews.llvm.org/D81031
  • Loading branch information
jhuber6 committed Jul 18, 2020
1 parent 9dceb32 commit 3bbbe4c
Show file tree
Hide file tree
Showing 4 changed files with 903 additions and 521 deletions.
2 changes: 1 addition & 1 deletion clang/test/OpenMP/barrier_codegen.cpp
Expand Up @@ -46,7 +46,7 @@ int main(int argc, char **argv) {
// IRBUILDER: ; Function Attrs: nounwind
// IRBUILDER-NEXT: declare i32 @__kmpc_global_thread_num(%struct.ident_t*) #
// IRBUILDER_OPT: ; Function Attrs: inaccessiblememonly nofree nosync nounwind readonly
// IRBUILDER_OPT-NEXT: declare i32 @__kmpc_global_thread_num(%struct.ident_t*) #
// IRBUILDER_OPT-NEXT: declare i32 @__kmpc_global_thread_num(%struct.ident_t* nocapture nofree readonly) #

// CHECK: define {{.+}} [[TMAIN_INT]](
// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num([[IDENT_T]]* [[LOC]])
Expand Down

0 comments on commit 3bbbe4c

Please sign in to comment.