diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-10 12:19:54 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-10 12:19:54 +0000 |
commit | 1809571c7698e133e6325a9d8911ee073e35dfe8 (patch) | |
tree | 62b8e1e99acb017f78bddbd96c359dfb09746c2d /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 1a8093c3a7997879702b0a4fb4920add444c1392 (diff) | |
download | llvm-1809571c7698e133e6325a9d8911ee073e35dfe8.zip llvm-1809571c7698e133e6325a9d8911ee073e35dfe8.tar.gz llvm-1809571c7698e133e6325a9d8911ee073e35dfe8.tar.bz2 |
Code reformatting and improvement for OpenMP.
Moved CGOpenMPRegionInfo from CGOpenMPRuntime.h to CGOpenMPRuntime.cpp file and reworked the code for this change. Also added processing of ThreadID variable passed as an argument in outlined functions in parallel and task directives.
llvm-svn: 219490
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index d8d715d..0bef478 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -215,6 +215,10 @@ public: bool isCXXThisExprCaptured() const { return CXXThisFieldDecl != nullptr; } FieldDecl *getThisFieldDecl() const { return CXXThisFieldDecl; } + static bool classof(const CGCapturedStmtInfo *) { + return true; + } + /// \brief Emit the captured statement body. virtual void EmitBody(CodeGenFunction &CGF, Stmt *S) { RegionCounter Cnt = CGF.getPGORegionCounter(S); |