LLVM 20.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
 
bool isSingleEdge () const
 Check if this is the only edge between Start and End.
 

Detailed Description

Definition at line 94 of file Dominators.h.

Constructor & Destructor Documentation

◆ BasicBlockEdge() [1/3]

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

Definition at line 99 of file Dominators.h.

◆ BasicBlockEdge() [2/3]

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

Definition at line 102 of file Dominators.h.

◆ BasicBlockEdge() [3/3]

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

Definition at line 105 of file Dominators.h.

Member Function Documentation

◆ getEnd()

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

◆ getStart()

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

◆ isSingleEdge()

bool BasicBlockEdge::isSingleEdge ( ) const

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

Definition at line 51 of file Dominators.cpp.

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

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


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