|
LLVM
10.0.0
|
Divergence analysis frontend for GPU kernels. More...
#include "llvm/Analysis/DivergenceAnalysis.h"
Public Member Functions | |
| GPUDivergenceAnalysis (Function &F, const DominatorTree &DT, const PostDominatorTree &PDT, const LoopInfo &LI, const TargetTransformInfo &TTI) | |
| Runs the divergence analysis on , a GPU kernel. More... | |
| bool | hasDivergence () const |
| Whether any divergence was detected. More... | |
| const Function & | getFunction () const |
| The GPU kernel this analysis result is for. More... | |
| bool | isDivergent (const Value &V) const |
Whether V is divergent at its definition. More... | |
| bool | isDivergentUse (const Use &U) const |
Whether U is divergent. Uses of a uniform value can be divergent. More... | |
| bool | isUniform (const Value &V) const |
Whether V is uniform/non-divergent. More... | |
| bool | isUniformUse (const Use &U) const |
Whether U is uniform/non-divergent. More... | |
| void | print (raw_ostream &OS, const Module *) const |
| Print all divergent values in the kernel. More... | |
Divergence analysis frontend for GPU kernels.
Definition at line 179 of file DivergenceAnalysis.h.
| GPUDivergenceAnalysis::GPUDivergenceAnalysis | ( | Function & | F, |
| const DominatorTree & | DT, | ||
| const PostDominatorTree & | PDT, | ||
| const LoopInfo & | LI, | ||
| const TargetTransformInfo & | TTI | ||
| ) |
Runs the divergence analysis on , a GPU kernel.
Definition at line 432 of file DivergenceAnalysis.cpp.
References llvm::DivergenceAnalysis::addUniformOverride(), Arg, llvm::Function::args(), llvm::DivergenceAnalysis::compute(), llvm::instructions(), llvm::TargetTransformInfo::isAlwaysUniform(), llvm::TargetTransformInfo::isSourceOfDivergence(), and llvm::DivergenceAnalysis::markDivergent().
The GPU kernel this analysis result is for.
Definition at line 193 of file DivergenceAnalysis.h.
References llvm::DivergenceAnalysis::getFunction(), llvm::DivergenceAnalysis::isDivergent(), and llvm::DivergenceAnalysis::isDivergentUse().
|
inline |
Whether any divergence was detected.
Definition at line 190 of file DivergenceAnalysis.h.
References llvm::DivergenceAnalysis::hasDetectedDivergence().
Whether V is divergent at its definition.
Definition at line 454 of file DivergenceAnalysis.cpp.
References llvm::DivergenceAnalysis::isDivergent().
Whether U is divergent. Uses of a uniform value can be divergent.
Definition at line 458 of file DivergenceAnalysis.cpp.
References llvm::DivergenceAnalysis::isDivergentUse().
Whether V is uniform/non-divergent.
Definition at line 202 of file DivergenceAnalysis.h.
References llvm::DivergenceAnalysis::isDivergent().
Whether U is uniform/non-divergent.
Uses of a uniform value can be divergent.
Definition at line 206 of file DivergenceAnalysis.h.
References llvm::DivergenceAnalysis::isDivergentUse(), and llvm::DivergenceAnalysis::print().
| void GPUDivergenceAnalysis::print | ( | raw_ostream & | OS, |
| const Module * | mod | ||
| ) | const |
Print all divergent values in the kernel.
Definition at line 462 of file DivergenceAnalysis.cpp.
References llvm::DivergenceAnalysis::getFunction(), llvm::Value::getName(), and llvm::DivergenceAnalysis::print().
1.8.13