|
LLVM 24.0.0git
|
The must-be-executed context of a program point, as returned by MustBeExecutedContextExplorer::getContext. More...
#include "llvm/Analysis/MustExecute.h"
Public Member Functions | |
| LLVM_ABI bool | contains (const Instruction *I) const |
Return true if I is in the context. | |
| LLVM_ABI bool | checkForAllTerminators (function_ref< bool(const Instruction *)> Pred) const |
Check Pred on all terminators in the context and return true if it holds for all of them. | |
The must-be-executed context of a program point, as returned by MustBeExecutedContextExplorer::getContext.
Definition at line 562 of file MustExecute.h.
| bool MustBeExecutedContextExplorer::Context::checkForAllTerminators | ( | function_ref< bool(const Instruction *)> | Pred | ) | const |
Check Pred on all terminators in the context and return true if it holds for all of them.
Definition at line 849 of file MustExecute.cpp.
References contains(), llvm::BasicBlock::getTerminator(), llvm::SmallPtrSetImpl< PtrType >::insert(), and Pred.
| bool MustBeExecutedContextExplorer::Context::contains | ( | const Instruction * | I | ) | const |
Return true if I is in the context.
That is the case if iterating over the context of the program point visits I.
Definition at line 819 of file MustExecute.cpp.
References llvm::BasicBlock::getParent(), and I.