diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-14 15:01:03 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-14 15:01:03 +0000 |
commit | 3c595a6b2c58a23c42a6270bddca8ae99108b5be (patch) | |
tree | 20c1e0010dc6318bec27f4ecdf48489b2c3f5bbf /clang/lib/CodeGen/CGOpenMPRuntime.h | |
parent | e1dde076402e9770487dd3aba31ae80b5c889181 (diff) | |
download | bcm5719-llvm-3c595a6b2c58a23c42a6270bddca8ae99108b5be.tar.gz bcm5719-llvm-3c595a6b2c58a23c42a6270bddca8ae99108b5be.zip |
[OPENMP] Generalization of calls of the outlined functions.
General improvement of the outlined functions calls.
llvm-svn: 310840
Diffstat (limited to 'clang/lib/CodeGen/CGOpenMPRuntime.h')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntime.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.h b/clang/lib/CodeGen/CGOpenMPRuntime.h index d28f8508675..30e37a8f125 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntime.h +++ b/clang/lib/CodeGen/CGOpenMPRuntime.h @@ -250,6 +250,11 @@ protected: // virtual StringRef getOutlinedHelperName() const { return ".omp_outlined."; } + /// Emits \p Callee function call with arguments \p Args with location \p Loc. + void emitCall(CodeGenFunction &CGF, llvm::Value *Callee, + ArrayRef<llvm::Value *> Args = llvm::None, + SourceLocation Loc = SourceLocation()) const; + private: /// \brief Default const ident_t object used for initialization of all other /// ident_t objects. @@ -1345,7 +1350,8 @@ public: /// Emits call of the outlined function with the provided arguments, /// translating these arguments to correct target-specific arguments. virtual void - emitOutlinedFunctionCall(CodeGenFunction &CGF, llvm::Value *OutlinedFn, + emitOutlinedFunctionCall(CodeGenFunction &CGF, SourceLocation Loc, + llvm::Value *OutlinedFn, ArrayRef<llvm::Value *> Args = llvm::None) const; }; |