clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo Class Reference

API for captured statement code generation. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CodeGenFunction.h"

Public Member Functions

 CGCapturedStmtInfo (CapturedRegionKind K=CR_Default)
 CGCapturedStmtInfo (const CapturedStmt &S, CapturedRegionKind K=CR_Default)
virtual ~CGCapturedStmtInfo ()
CapturedRegionKind getKind () const
virtual void setContextValue (llvm::Value *V)
virtual llvm::Value * getContextValue () const
virtual const FieldDecllookup (const VarDecl *VD) const
 Lookup the captured field decl for a variable.
bool isCXXThisExprCaptured () const
virtual FieldDeclgetThisFieldDecl () const
virtual void EmitBody (CodeGenFunction &CGF, const Stmt *S)
 Emit the captured statement body.
virtual StringRef getHelperName () const
 Get the name of the capture helper.
llvm::SmallDenseMap< const VarDecl *, FieldDecl * > getCaptureFields ()
 Get the CaptureFields.

Static Public Member Functions

static bool classof (const CGCapturedStmtInfo *)

Detailed Description

API for captured statement code generation.

Definition at line 463 of file CodeGenFunction.h.

Constructor & Destructor Documentation

◆ CGCapturedStmtInfo() [1/2]

clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::CGCapturedStmtInfo ( CapturedRegionKind  K = CR_Default)

Definition at line 465 of file CodeGenFunction.h.

◆ CGCapturedStmtInfo() [2/2]

clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::CGCapturedStmtInfo ( const CapturedStmt S,
CapturedRegionKind  K = CR_Default 

Definition at line 467 of file CodeGenFunction.h.

◆ ~CGCapturedStmtInfo()

CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo ( )

Definition at line 2624 of file CodeGenFunction.cpp.

Member Function Documentation

◆ classof()

static bool clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::classof ( const CGCapturedStmtInfo )

Definition at line 501 of file CodeGenFunction.h.

◆ EmitBody()

virtual void clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::EmitBody ( CodeGenFunction CGF,
const Stmt S 

◆ getCaptureFields()

llvm::SmallDenseMap< const VarDecl *, FieldDecl * > clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getCaptureFields ( )

Get the CaptureFields.

Definition at line 515 of file CodeGenFunction.h.

◆ getContextValue()

virtual llvm::Value * clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getContextValue ( ) const

Definition at line 491 of file CodeGenFunction.h.

◆ getHelperName()

virtual StringRef clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getHelperName ( ) const

Get the name of the capture helper.

Definition at line 512 of file CodeGenFunction.h.

◆ getKind()

CapturedRegionKind clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getKind ( ) const

◆ getThisFieldDecl()

virtual FieldDecl * clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::getThisFieldDecl ( ) const

Definition at line 499 of file CodeGenFunction.h.

Referenced by isCXXThisExprCaptured().

◆ isCXXThisExprCaptured()

bool clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::isCXXThisExprCaptured ( ) const

◆ lookup()

virtual const FieldDecl * clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::lookup ( const VarDecl VD) const

Lookup the captured field decl for a variable.

Definition at line 494 of file CodeGenFunction.h.

References clang::VarDecl::getCanonicalDecl().

◆ setContextValue()

virtual void clang::CodeGen::CodeGenFunction::CGCapturedStmtInfo::setContextValue ( llvm::Value *  V)

Definition at line 489 of file CodeGenFunction.h.

References V.

The documentation for this class was generated from the following files: