diff options
| author | Alexander Musman <alexander.musman@gmail.com> | 2014-05-22 08:54:05 +0000 |
|---|---|---|
| committer | Alexander Musman <alexander.musman@gmail.com> | 2014-05-22 08:54:05 +0000 |
| commit | b725d270dbf2b9d7e5dc8099c243a19c6fbb4849 (patch) | |
| tree | 60f8fb7171f14f73ac81f4793a73e8bc4b7e1f08 /lib/CodeGen/CodeGenFunction.h | |
| parent | 5da13c6a4f668a84fad68558ad05c67501fbadd5 (diff) | |
| download | clang-b725d270dbf2b9d7e5dc8099c243a19c6fbb4849.tar.gz clang-b725d270dbf2b9d7e5dc8099c243a19c6fbb4849.tar.bz2 clang-b725d270dbf2b9d7e5dc8099c243a19c6fbb4849.tar.xz | |
This patch adds a helper class (CGLoopInfo) for marking memory instructions with llvm.mem.parallel_loop_access metadata.
It also adds a simple initial version of codegen for pragma omp simd (it will change in the future to support all the clauses).
Differential revision: http://reviews.llvm.org/D3644
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 8c4029afa0..944a0cf13b 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -16,6 +16,7 @@ #include "CGBuilder.h" #include "CGDebugInfo.h" +#include "CGLoopInfo.h" #include "CGValue.h" #include "CodeGenModule.h" #include "CodeGenPGO.h" @@ -129,8 +130,15 @@ public: const TargetInfo &Target; typedef std::pair<llvm::Value *, llvm::Value *> ComplexPairTy; + LoopInfoStack LoopStack; CGBuilderTy Builder; + /// \brief CGBuilder insert helper. This function is called after an + /// instruction is created using Builder. + void InsertHelper(llvm::Instruction *I, const llvm::Twine &Name, + llvm::BasicBlock *BB, + llvm::BasicBlock::iterator InsertPt) const; + /// CurFuncDecl - Holds the Decl for the current outermost /// non-closure context. const Decl *CurFuncDecl; @@ -1883,6 +1891,7 @@ public: llvm::Value *GenerateCapturedStmtArgument(const CapturedStmt &S); void EmitOMPParallelDirective(const OMPParallelDirective &S); + void EmitOMPSimdDirective(const OMPSimdDirective &S); //===--------------------------------------------------------------------===// // LValue Expression Emission |
