51 #ifndef LLVM_TRANSFORMS_UTILS_PREDICATEINFO_H
52 #define LLVM_TRANSFORMS_UTILS_PREDICATEINFO_H
135 AssumeInst(AssumeInst) {}
184 CaseValue(CaseValue),
Switch(SI) {}
192 namespace PredicateInfoClasses {
221 return PredicateMap.lookup(V);
230 void buildPredicateInfo();
241 ValueInfo &getOrCreateValueInfo(
Value *);
244 const ValueInfo &getValueInfo(
Value *)
const;
295 #endif // LLVM_TRANSFORMS_UTILS_PREDICATEINFO_H
static bool classof(const PredicateBase *PB)
Implements a dense probed hash-table based set.
PredicateWithCondition(PredicateType PT, Value *Op, Value *Condition)
PredicateInfo(Function &, DominatorTree &, AssumptionCache &)
PredicateBase & operator=(const PredicateBase &)=delete
A cache of .assume calls within a function.
PredicateInfoPrinterLegacyPass()
This defines the Use class.
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Verifier pass for PredicateInfo.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
PredicateWithEdge()=delete
PredicateBranch(Value *Op, BasicBlock *BranchBB, BasicBlock *SplitBB, Value *Condition, bool TakenEdge)
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
A CRTP mix-in to automatically provide informational APIs needed for passes.
static bool classof(const PredicateBase *PB)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
PredicateInfoPrinterPass(raw_ostream &OS)
PredicateAssume(Value *Op, IntrinsicInst *AssumeInst, Value *Condition)
PredicateSwitch(Value *Op, BasicBlock *SwitchBB, BasicBlock *TargetBB, Value *CaseValue, SwitchInst *SI)
static bool classof(const PredicateBase *PB)
A set of analyses that are preserved following a run of a transformation pass.
LLVM Basic Block Representation.
The instances of the Type class are immutable: once they are created, they are never changed...
Conditional or Unconditional Branch instruction.
virtual ~PredicateBase()=default
PredicateBase(PredicateType PT, Value *Op)
Printer pass for PredicateInfo.
void verifyPredicateInfo() const
Represent the analysis usage information of a pass.
void print(raw_ostream &) const
FunctionPass class - This class is used to implement most global optimizations.
An intrusive list with ownership and callbacks specified/controlled by ilist_traits, only with API safe for polymorphic types.
static bool classof(const PredicateBase *PB)
PredicateWithEdge(PredicateType PType, Value *Op, BasicBlock *From, BasicBlock *To, Value *Cond)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Module.h This file contains the declarations for the Module class.
Encapsulates PredicateInfo, including all data associated with memory accesses.
const PredicateBase * getPredicateInfoFor(const Value *V) const
An assembly annotator class to print PredicateInfo information in comments.
LLVM Value Representation.
static bool classof(const PredicateBase *PB)
This class implements an extremely fast bulk output stream that can only output to a stream...
A container for analyses that lazily runs them and caches their results.
IntrinsicInst * AssumeInst
bool runOnFunction(Function &) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
A wrapper class for inspecting calls to intrinsic functions.