14 #ifndef LLVM_ANALYSIS_CAPTURETRACKING_H 15 #define LLVM_ANALYSIS_CAPTURETRACKING_H 23 class OrderedBasicBlock;
45 unsigned MaxUsesToExplore = DefaultMaxUsesToExplore);
64 unsigned MaxUsesToExplore = DefaultMaxUsesToExplore);
95 unsigned MaxUsesToExplore = DefaultMaxUsesToExplore);
virtual void tooManyUses()=0
tooManyUses - The depth of traversal has breached a limit.
This callback is used in conjunction with PointerMayBeCaptured.
This class represents lattice values for constants.
unsigned constexpr DefaultMaxUsesToExplore
The default value for MaxUsesToExplore argument.
virtual bool shouldExplore(const Use *U)
shouldExplore - This is the use of a value derived from the pointer.
virtual ~CaptureTracker()
A Use represents the edge between a Value definition and its users.
virtual bool captured(const Use *U)=0
captured - Information about the pointer was captured by the user of use U.
bool PointerMayBeCapturedBefore(const Value *V, bool ReturnCaptures, bool StoreCaptures, const Instruction *I, const DominatorTree *DT, bool IncludeI=false, OrderedBasicBlock *OBB=nullptr, unsigned MaxUsesToExplore=DefaultMaxUsesToExplore)
PointerMayBeCapturedBefore - Return true if this pointer value may be captured by the enclosing funct...
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
LLVM Value Representation.
bool PointerMayBeCaptured(const Value *V, bool ReturnCaptures, bool StoreCaptures, unsigned MaxUsesToExplore=DefaultMaxUsesToExplore)
PointerMayBeCaptured - Return true if this pointer value may be captured by the enclosing function (w...