LLVM 22.0.0git
Public Member Functions | List of all members
llvm::BasicBlockEdge Class Reference

#include "llvm/IR/Dominators.h"

Public Member Functions

 BasicBlockEdge (const BasicBlock *Start_, const BasicBlock *End_)
 
 BasicBlockEdge (const std::pair< BasicBlock *, BasicBlock * > &Pair)
 
 BasicBlockEdge (const std::pair< const BasicBlock *, const BasicBlock * > &Pair)
 
const BasicBlockgetStart () const
 
const BasicBlockgetEnd () const
 
LLVM_ABI bool isSingleEdge () const
 Check if this is the only edge between Start and End.
 

Detailed Description

Definition at line 97 of file Dominators.h.

Constructor & Destructor Documentation

◆ BasicBlockEdge() [1/3]

llvm::BasicBlockEdge::BasicBlockEdge ( const BasicBlock Start_,
const BasicBlock End_ 
)
inline

Definition at line 102 of file Dominators.h.

◆ BasicBlockEdge() [2/3]

llvm::BasicBlockEdge::BasicBlockEdge ( const std::pair< BasicBlock *, BasicBlock * > &  Pair)
inline

Definition at line 105 of file Dominators.h.

◆ BasicBlockEdge() [3/3]

llvm::BasicBlockEdge::BasicBlockEdge ( const std::pair< const BasicBlock *, const BasicBlock * > &  Pair)
inline

Definition at line 108 of file Dominators.h.

Member Function Documentation

◆ getEnd()

const BasicBlock * llvm::BasicBlockEdge::getEnd ( ) const
inline

Definition at line 115 of file Dominators.h.

References End.

Referenced by llvm::DominatorTree::dominates(), and isOnlyReachableViaThisEdge().

◆ getStart()

const BasicBlock * llvm::BasicBlockEdge::getStart ( ) const
inline

Definition at line 111 of file Dominators.h.

Referenced by llvm::DominatorTree::dominates(), and isOnlyReachableViaThisEdge().

◆ isSingleEdge()

bool BasicBlockEdge::isSingleEdge ( ) const

Check if this is the only edge between Start and End.

Definition at line 52 of file Dominators.cpp.

References assert(), End, and llvm::successors().

Referenced by BrPHIToSelect(), llvm::ScalarEvolution::isLoopBackedgeGuardedByCond(), and llvm::isOverflowIntrinsicNoWrap().


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