LLVM 17.0.0git
Public Member Functions | Protected Attributes | List of all members
llvm::LegacyDivergenceAnalysisImpl Class Reference

#include "llvm/Analysis/LegacyDivergenceAnalysis.h"

Inheritance diagram for llvm::LegacyDivergenceAnalysisImpl:
Inheritance graph
[legend]
Collaboration diagram for llvm::LegacyDivergenceAnalysisImpl:
Collaboration graph
[legend]

Public Member Functions

bool isDivergent (const Value *V) const
 
bool isDivergentUse (const Use *U) const
 
bool isUniform (const Value *V) const
 
bool isUniformUse (const Use *U) const
 
void removeValue (const Value *V)
 
void print (raw_ostream &OS, const Module *) const
 
bool shouldUseGPUDivergenceAnalysis (const Function &F, const TargetTransformInfo &TTI, const LoopInfo &LI)
 
void run (Function &F, TargetTransformInfo &TTI, DominatorTree &DT, PostDominatorTree &PDT, const LoopInfo &LI)
 

Protected Attributes

std::unique_ptr< DivergenceInfogpuDA
 
DenseSet< const Value * > DivergentValues
 
DenseSet< const Use * > DivergentUses
 

Detailed Description

Definition at line 34 of file LegacyDivergenceAnalysis.h.

Member Function Documentation

◆ isDivergent()

bool LegacyDivergenceAnalysisImpl::isDivergent ( const Value V) const

◆ isDivergentUse()

bool LegacyDivergenceAnalysisImpl::isDivergentUse ( const Use U) const

◆ isUniform()

bool llvm::LegacyDivergenceAnalysisImpl::isUniform ( const Value V) const
inline

Definition at line 43 of file LegacyDivergenceAnalysis.h.

References isDivergent().

◆ isUniformUse()

bool llvm::LegacyDivergenceAnalysisImpl::isUniformUse ( const Use U) const
inline

Definition at line 47 of file LegacyDivergenceAnalysis.h.

References isDivergentUse().

◆ print()

void LegacyDivergenceAnalysisImpl::print ( raw_ostream OS,
const Module  
) const

◆ removeValue()

void llvm::LegacyDivergenceAnalysisImpl::removeValue ( const Value V)
inline

◆ run()

void LegacyDivergenceAnalysisImpl::run ( Function F,
llvm::TargetTransformInfo TTI,
llvm::DominatorTree DT,
llvm::PostDominatorTree PDT,
const LoopInfo LI 
)

◆ shouldUseGPUDivergenceAnalysis()

bool LegacyDivergenceAnalysisImpl::shouldUseGPUDivergenceAnalysis ( const Function F,
const TargetTransformInfo TTI,
const LoopInfo LI 
)

Member Data Documentation

◆ DivergentUses

DenseSet<const Use *> llvm::LegacyDivergenceAnalysisImpl::DivergentUses
protected

◆ DivergentValues

DenseSet<const Value *> llvm::LegacyDivergenceAnalysisImpl::DivergentValues
protected

◆ gpuDA

std::unique_ptr<DivergenceInfo> llvm::LegacyDivergenceAnalysisImpl::gpuDA
protected

The documentation for this class was generated from the following files: