22 #ifndef LLVM_ANALYSIS_DEMANDED_BITS_H 23 #define LLVM_ANALYSIS_DEMANDED_BITS_H 34 class AssumptionCache;
44 F(F), AC(AC), DT(DT) {}
55 void performAnalysis();
56 void determineLiveOperandBits(
const Instruction *UserI,
65 bool Analyzed =
false;
85 void releaseMemory()
override;
122 #endif // LLVM_ANALYSIS_DEMANDED_BITS_H
Compute iterated dominance frontiers using a linear time algorithm.
A Module instance is used to store all the information related to an LLVM module. ...
bool isInstructionDead(Instruction *I)
Return true if, during analysis, I could not be reached.
DemandedBitsPrinterPass(raw_ostream &OS)
A cache of @llvm.assume calls within a function.
An analysis that produces DemandedBits for a function.
This file implements a class to represent arbitrary precision integral constant values and operations...
A CRTP mix-in to automatically provide informational APIs needed for passes.
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
static bool runOnFunction(Function &F, bool PostInlining)
Printer pass for DemandedBits.
A set of analyses that are preserved following a run of a transformation pass.
A CRTP mix-in that provides informational APIs needed for analysis passes.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements...
DemandedBits & getDemandedBits()
DemandedBits(Function &F, AssumptionCache &AC, DominatorTree &DT)
APInt getDemandedBits(Instruction *I)
Return the bits demanded from instruction I.
Class for arbitrary precision integers.
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.
This header defines various interfaces for pass management in LLVM.
FunctionPass * createDemandedBitsWrapperPass()
Create a demanded bits analysis pass.
A special type used by analysis passes to provide an address that identifies that particular analysis...
void print(raw_ostream &OS)