LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::CaptureTracker Struct Referenceabstract

#include <CaptureTracking.h>

Public Member Functions

virtual ~CaptureTracker ()
 
virtual void tooManyUses ()=0
 
virtual bool shouldExplore (Use *U)
 
virtual bool captured (Use *U)=0
 

Detailed Description

This callback is used in conjunction with PointerMayBeCaptured. In addition to the interface here, you'll need to provide your own getters to see whether anything was captured.

Definition at line 36 of file CaptureTracking.h.

Constructor & Destructor Documentation

CaptureTracker::~CaptureTracker ( )
virtual

Definition at line 29 of file CaptureTracking.cpp.

Member Function Documentation

virtual bool llvm::CaptureTracker::captured ( Use U)
pure virtual

captured - Information about the pointer was captured by the user of use U. Return true to stop the traversal or false to continue looking for more capturing instructions.

Referenced by llvm::PointerMayBeCaptured().

bool CaptureTracker::shouldExplore ( Use U)
virtual

shouldExplore - This is the use of a value derived from the pointer. To prune the search (ie., assume that none of its users could possibly capture) return false. To search it, return true.

U->getUser() is always an Instruction.

Definition at line 31 of file CaptureTracking.cpp.

Referenced by llvm::PointerMayBeCaptured().

virtual void llvm::CaptureTracker::tooManyUses ( )
pure virtual

tooManyUses - The depth of traversal has breached a limit. There may be capturing instructions that will not be passed into captured().

Referenced by llvm::PointerMayBeCaptured().


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