diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-08-29 18:32:21 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-08-29 18:32:21 +0000 |
commit | 8d8e1235abf72375b77ff7ad1e3b56dce32d23c0 (patch) | |
tree | 583b32f6e81a819b171692ec9169a68a7853114a /clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h | |
parent | 0f29e953b74f6526ef8f283bfe0f372196780b8a (diff) | |
download | bcm5719-llvm-8d8e1235abf72375b77ff7ad1e3b56dce32d23c0.tar.gz bcm5719-llvm-8d8e1235abf72375b77ff7ad1e3b56dce32d23c0.zip |
[OPENMP][NVPTX] Add support for lightweight runtime.
If the target construct can be executed in SPMD mode + it is a loop
based directive with static scheduling, we can use lightweight runtime
support.
llvm-svn: 340953
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h index f83e99f8a3b..0975eb06418 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h +++ b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h @@ -374,6 +374,7 @@ private: llvm::SmallVector<llvm::Value *, 4> EscapedVariableLengthDeclsAddrs; const RecordDecl *GlobalRecord = nullptr; llvm::Value *GlobalRecordAddr = nullptr; + llvm::Value *IsInSPMDModeFlag = nullptr; std::unique_ptr<CodeGenFunction::OMPMapVars> MappedParams; }; /// Maps the function to the list of the globalized variables with their |