16 #ifndef LLVM_ANALYSIS_LEGACY_DIVERGENCE_ANALYSIS_H 17 #define LLVM_ANALYSIS_LEGACY_DIVERGENCE_ANALYSIS_H 26 class GPUDivergenceAnalysis;
59 bool shouldUseGPUDivergenceAnalysis(
const Function &F)
const;
62 std::unique_ptr<GPUDivergenceAnalysis> gpuDA;
69 #endif //LLVM_ANALYSIS_LEGACY_DIVERGENCE_ANALYSIS_H void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
void print(raw_ostream &OS, const Module *) const override
print - Print out the internal state of the pass.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
bool isDivergent(const Value *V) const
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
bool erase(const ValueT &V)
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
void removeValue(const Value *V)
LegacyDivergenceAnalysis()
LLVM Value Representation.
bool isUniform(const Value *V) const
This class implements an extremely fast bulk output stream that can only output to a stream...
void initializeLegacyDivergenceAnalysisPass(PassRegistry &)