clang API Documentation
API for captured statement code generation. More...
#include <CodeGenFunction.h>
Public Member Functions | |
CGCapturedStmtInfo (const CapturedStmt &S, CapturedRegionKind K=CR_Default) | |
virtual | ~CGCapturedStmtInfo () |
CapturedRegionKind | getKind () const |
void | setContextValue (llvm::Value *V) |
llvm::Value * | getContextValue () const |
const FieldDecl * | lookup (const VarDecl *VD) const |
Lookup the captured field decl for a variable. | |
bool | isCXXThisExprCaptured () const |
FieldDecl * | getThisFieldDecl () const |
virtual void | EmitBody (CodeGenFunction &CGF, Stmt *S) |
Emit the captured statement body. | |
virtual StringRef | getHelperName () const |
Get the name of the capture helper. | |
Static Public Member Functions | |
static bool | classof (const CGCapturedStmtInfo *) |
API for captured statement code generation.
Definition at line 183 of file CodeGenFunction.h.
clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::CGCapturedStmtInfo | ( | const CapturedStmt & | S, |
CapturedRegionKind | K = CR_Default |
||
) | [inline, explicit] |
Definition at line 185 of file CodeGenFunction.h.
References clang::CapturedStmt::capture_begin(), clang::CapturedStmt::capture_end(), and clang::CapturedStmt::getCapturedRecordDecl().
CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo | ( | ) | [virtual] |
Definition at line 1695 of file CodeGenFunction.cpp.
static bool clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::classof | ( | const CGCapturedStmtInfo * | ) | [inline, static] |
Definition at line 217 of file CodeGenFunction.h.
virtual void clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::EmitBody | ( | CodeGenFunction & | CGF, |
Stmt * | S | ||
) | [inline, virtual] |
Emit the captured statement body.
Definition at line 222 of file CodeGenFunction.h.
References clang::CodeGen::RegionCounter::beginRegion(), clang::CodeGen::CodeGenFunction::Builder, clang::CodeGen::CodeGenFunction::EmitStmt(), and clang::CodeGen::CodeGenFunction::getPGORegionCounter().
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
llvm::Value* clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getContextValue | ( | ) | const [inline] |
Definition at line 207 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(), clang::CodeGen::CodeGenFunction::EmitOMPFirstprivateClause(), and clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
virtual StringRef clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getHelperName | ( | ) | const [inline, virtual] |
Get the name of the capture helper.
Definition at line 229 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
CapturedRegionKind clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getKind | ( | ) | const [inline] |
Definition at line 203 of file CodeGenFunction.h.
FieldDecl* clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getThisFieldDecl | ( | ) | const [inline] |
Definition at line 215 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
bool clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::isCXXThisExprCaptured | ( | ) | const [inline] |
Definition at line 214 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().
const FieldDecl* clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup | ( | const VarDecl * | VD | ) | const [inline] |
Lookup the captured field decl for a variable.
Definition at line 210 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(), and clang::CodeGen::CodeGenFunction::EmitOMPFirstprivateClause().
void clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::setContextValue | ( | llvm::Value * | V | ) | [inline] |
Definition at line 205 of file CodeGenFunction.h.
Referenced by clang::CodeGen::CodeGenFunction::GenerateCapturedStmtFunction().