diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2020-09-30 15:11:51 -0400 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2020-09-30 15:12:21 -0400 |
commit | 1b60f63e4fd041550019b692dc7bf490dce2c75c (patch) | |
tree | a0c0ac17d4f3ec3630b065f197daab1adcbecee2 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 81921ebc430536ae5718da70a54328c790c8ae19 (diff) | |
download | llvm-1b60f63e4fd041550019b692dc7bf490dce2c75c.zip llvm-1b60f63e4fd041550019b692dc7bf490dce2c75c.tar.gz llvm-1b60f63e4fd041550019b692dc7bf490dce2c75c.tar.bz2 |
Revert "[OpenMP] Replace OpenMP RTL Functions With OMPIRBuilder and OMPKinds.def"
Failing tests on Arm due to the tests automatically populating
incomatible pointer width architectures. Reverting until the tests are
updated. Failing tests:
OpenMP/distribute_parallel_for_num_threads_codegen.cpp
OpenMP/distribute_parallel_for_if_codegen.cpp
OpenMP/distribute_parallel_for_simd_if_codegen.cpp
OpenMP/distribute_parallel_for_simd_num_threads_codegen.cpp
OpenMP/target_teams_distribute_parallel_for_if_codegen.cpp
OpenMP/target_teams_distribute_parallel_for_simd_if_codegen.cpp
OpenMP/teams_distribute_parallel_for_if_codegen.cpp
OpenMP/teams_distribute_parallel_for_simd_if_codegen.cpp
This reverts commit 90eaedda9b8ef46e2c0c1b8bce33e98a3adbb68c.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 088ed28..19085b5 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1068,6 +1068,16 @@ public: llvm::AttributeList ExtraAttrs = llvm::AttributeList(), bool Local = false, bool AssumeConvergent = false); + /// Create or return a runtime function declaration with the specified type + /// and name. This will automatically add the convergent attribute to the + /// function declaration. + llvm::FunctionCallee CreateConvergentRuntimeFunction( + llvm::FunctionType *Ty, StringRef Name, + llvm::AttributeList ExtraAttrs = llvm::AttributeList(), + bool Local = false) { + return CreateRuntimeFunction(Ty, Name, ExtraAttrs, Local, true); + } + /// Create a new runtime global variable with the specified type and name. llvm::Constant *CreateRuntimeVariable(llvm::Type *Ty, StringRef Name); |