LLVM  15.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::ValueDFS_Compare Struct Reference
Collaboration diagram for llvm::ValueDFS_Compare:
Collaboration graph

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
ValuegetMiddleDef (const ValueDFS &VD) const
const InstructiongetDefOrUser (const Value *Def, const Use *U) const
bool localComesBefore (const ValueDFS &A, const ValueDFS &B) const

Public Attributes


Detailed Description

Definition at line 120 of file PredicateInfo.cpp.

Constructor & Destructor Documentation

◆ ValueDFS_Compare()

llvm::ValueDFS_Compare::ValueDFS_Compare ( DominatorTree DT)

Definition at line 122 of file PredicateInfo.cpp.

Member Function Documentation

◆ comparePHIRelated()

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

◆ getBlockEdge()

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

Definition at line 152 of file PredicateInfo.cpp.

References llvm::ValueDFS::Def, llvm::ValueDFS::PInfo, and llvm::ValueDFS::U.

◆ getDefOrUser()

const Instruction* llvm::ValueDFS_Compare::getDefOrUser ( const Value Def,
const Use U 
) const

Definition at line 216 of file PredicateInfo.cpp.

References llvm::tgtok::Def.

◆ getMiddleDef()

Value* llvm::ValueDFS_Compare::getMiddleDef ( const ValueDFS VD) const

◆ localComesBefore()

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

Definition at line 224 of file PredicateInfo.cpp.

References B, and llvm::valueComesBefore().

◆ operator()()

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

Definition at line 124 of file PredicateInfo.cpp.

References assert(), B, llvm::LN_Last, and llvm::LN_Middle.

Member Data Documentation

◆ DT

DominatorTree& llvm::ValueDFS_Compare::DT

Definition at line 121 of file PredicateInfo.cpp.

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