summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorSamuel Antao <sfantao@us.ibm.com>2015-10-02 16:14:20 +0000
committerSamuel Antao <sfantao@us.ibm.com>2015-10-02 16:14:20 +0000
commitbed3c466326cffd992bf7570246ea71259b46871 (patch)
treee6f4a3332bad4e94a89e94f7af7722cc5a2f031b /clang/lib/CodeGen/CodeGenFunction.h
parent77f62652c1f0f755c335efd9ce578891c3a552e7 (diff)
downloadbcm5719-llvm-bed3c466326cffd992bf7570246ea71259b46871.tar.gz
bcm5719-llvm-bed3c466326cffd992bf7570246ea71259b46871.zip
[OpenMP] Target directive host codegen.
This patch implements the outlining for offloading functions for code annotated with the OpenMP target directive. It uses a temporary naming of the outlined functions that will have to be updated later on once target side codegen and registration of offloading libraries is implemented - the naming needs to be made unique in the produced library. llvm-svn: 249148
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 8879169a0f5..cd8ee6c3ab1 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2224,9 +2224,12 @@ public:
llvm::Function *EmitCapturedStmt(const CapturedStmt &S, CapturedRegionKind K);
llvm::Function *GenerateCapturedStmtFunction(const CapturedStmt &S);
Address GenerateCapturedStmtArgument(const CapturedStmt &S);
- llvm::Function *GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S);
+ llvm::Function *
+ GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S,
+ bool UseOnlyReferences = false);
void GenerateOpenMPCapturedVars(const CapturedStmt &S,
- SmallVectorImpl<llvm::Value *> &CapturedVars);
+ SmallVectorImpl<llvm::Value *> &CapturedVars,
+ bool UseOnlyReferences = false);
/// \brief Perform element by element copying of arrays with type \a
/// OriginalType from \a SrcAddr to \a DestAddr using copying procedure
/// generated by \a CopyGen.
OpenPOWER on IntegriCloud