15 #ifndef LLVM_ANALYSIS_LEGACY_DIVERGENCE_ANALYSIS_H 16 #define LLVM_ANALYSIS_LEGACY_DIVERGENCE_ANALYSIS_H 25 class GPUDivergenceAnalysis;
57 bool shouldUseGPUDivergenceAnalysis(
const Function &
F)
const;
60 std::unique_ptr<GPUDivergenceAnalysis> gpuDA;
70 #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.
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. ...
LegacyDivergenceAnalysis()
bool erase(const ValueT &V)
A Use represents the edge between a Value definition and its users.
bool isUniformUse(const Use *U) const
bool runOnFunction(Function &F) override
runOnFunction - Virtual method overriden by subclasses to do the per-function processing of the pass...
bool isDivergentUse(const Use *U) const
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
void removeValue(const Value *V)
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...