LLVM 22.0.0git
llvm::ValueDFS_Compare Struct Reference

Public Member Functions

 ValueDFS_Compare (DominatorTree &DT)
bool operator() (const ValueDFS &A, const ValueDFS &B) const
std::pair< BasicBlock *, BasicBlock * > getBlockEdge (const ValueDFS &VD) const
bool comparePHIRelated (const ValueDFS &A, const ValueDFS &B) const
const InstructiongetDefOrUser (const ValueDFS &VD) const
bool localComesBefore (const ValueDFS &A, const ValueDFS &B) const

Public Attributes

DominatorTreeDT

Detailed Description

Definition at line 94 of file PredicateInfo.cpp.

Constructor & Destructor Documentation

◆ ValueDFS_Compare()

llvm::ValueDFS_Compare::ValueDFS_Compare ( DominatorTree & DT)
inline

Definition at line 96 of file PredicateInfo.cpp.

References DT.

Member Function Documentation

◆ comparePHIRelated()

bool llvm::ValueDFS_Compare::comparePHIRelated ( const ValueDFS & A,
const ValueDFS & B ) const
inline

Definition at line 141 of file PredicateInfo.cpp.

References A(), assert(), B(), DT, getBlockEdge(), and llvm::DomTreeNodeBase< NodeT >::getDFSNumIn().

Referenced by operator()().

◆ getBlockEdge()

std::pair< BasicBlock *, BasicBlock * > llvm::ValueDFS_Compare::getBlockEdge ( const ValueDFS & VD) const
inline

Definition at line 131 of file PredicateInfo.cpp.

References llvm::cast(), PHI, llvm::ValueDFS::PInfo, and llvm::ValueDFS::U.

Referenced by comparePHIRelated().

◆ getDefOrUser()

const Instruction * llvm::ValueDFS_Compare::getDefOrUser ( const ValueDFS & VD) const
inline

Definition at line 173 of file PredicateInfo.cpp.

References assert(), llvm::cast(), llvm::isa(), llvm::ValueDFS::PInfo, and llvm::ValueDFS::U.

Referenced by localComesBefore().

◆ localComesBefore()

bool llvm::ValueDFS_Compare::localComesBefore ( const ValueDFS & A,
const ValueDFS & B ) const
inline

Definition at line 187 of file PredicateInfo.cpp.

References A(), B(), llvm::Instruction::comesBefore(), and getDefOrUser().

Referenced by operator()().

◆ operator()()

bool llvm::ValueDFS_Compare::operator() ( const ValueDFS & A,
const ValueDFS & B ) const
inline

Member Data Documentation

◆ DT

DominatorTree& llvm::ValueDFS_Compare::DT

Definition at line 95 of file PredicateInfo.cpp.

Referenced by comparePHIRelated(), and ValueDFS_Compare().


The documentation for this struct was generated from the following file: