22 #ifndef LLVM_ANALYSIS_DEMANDED_BITS_H
23 #define LLVM_ANALYSIS_DEMANDED_BITS_H
37 class AssumptionCache;
42 F(F), AC(AC), DT(DT), Analyzed(
false) {}
57 void performAnalysis();
58 void determineLiveOperandBits(
const Instruction *UserI,
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 .assume calls within a function.
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
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.
Function Alias Analysis false
DemandedBits run(Function &F, FunctionAnalysisManager &AM)
Run the analysis pass over a function and produce demanded bits information.
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
DemandedBitsWrapperPass()
DemandedBits Result
Provide the result typedef for this analysis pass.
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.
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
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.
void print(raw_ostream &OS, const Module *M) const override
print - Print out the internal state of the pass.
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 releaseMemory() override
Clean up memory in between runs.
void print(raw_ostream &OS)