diff options
author | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-16 15:26:02 +0000 |
---|---|---|
committer | Arpith Chacko Jacob <acjacob@us.ibm.com> | 2017-01-16 15:26:02 +0000 |
commit | 43a8b7bc8c1bf1e044888fa37e317b97a218bdfc (patch) | |
tree | 99190b7d0bb609b08887e7533b886ec8180e628a /clang/lib/CodeGen/CodeGenFunction.h | |
parent | c29d5f1674469a887c0763362fc9f965a0ea1740 (diff) | |
download | llvm-43a8b7bc8c1bf1e044888fa37e317b97a218bdfc.zip llvm-43a8b7bc8c1bf1e044888fa37e317b97a218bdfc.tar.gz llvm-43a8b7bc8c1bf1e044888fa37e317b97a218bdfc.tar.bz2 |
[OpenMP] Refactor code that calls codegen for target regions on the device.
This patch refactors code that calls codegen for target regions. Currently
the codebase only supports the 'target' directive. The patch pulls out
common target processing code into a static function that can be called
by codegen for any target directive.
Reviewers: ABataev
Differential Revision: https://reviews.llvm.org/D28752
llvm-svn: 292134
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 5861340..fe62618 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2704,13 +2704,10 @@ public: void EmitOMPTargetTeamsDistributeSimdDirective( const OMPTargetTeamsDistributeSimdDirective &S); - /// Emit outlined function for the target directive. - static std::pair<llvm::Function * /*OutlinedFn*/, - llvm::Constant * /*OutlinedFnID*/> - EmitOMPTargetDirectiveOutlinedFunction(CodeGenModule &CGM, - const OMPTargetDirective &S, - StringRef ParentName, - bool IsOffloadEntry); + /// Emit device code for the target directive. + static void EmitOMPTargetDeviceFunction(CodeGenModule &CGM, + StringRef ParentName, + const OMPTargetDirective &S); /// \brief Emit inner loop of the worksharing/simd construct. /// /// \param S Directive, for which the inner loop must be emitted. |