LLVM  8.0.1
Public Member Functions | List of all members
llvm::OrderedBasicBlock Class Reference

#include "llvm/Analysis/OrderedBasicBlock.h"

Public Member Functions

 OrderedBasicBlock (const BasicBlock *BasicB)
 
bool dominates (const Instruction *A, const Instruction *B)
 Find out whether A dominates B, meaning whether A comes before B in BB. More...
 

Detailed Description

Definition at line 34 of file OrderedBasicBlock.h.

Constructor & Destructor Documentation

◆ OrderedBasicBlock()

OrderedBasicBlock::OrderedBasicBlock ( const BasicBlock BasicB)

Member Function Documentation

◆ dominates()

bool OrderedBasicBlock::dominates ( const Instruction A,
const Instruction B 
)

Find out whether A dominates B, meaning whether A comes before B in BB.

This is a simplification that considers cached instruction positions and ignores other basic blocks, being only relevant to compare relative instructions positions inside BB. Returns false for A == B.

This is a simplification that considers cached instruction positions and ignores other basic blocks, being only relevant to compare relative instructions positions inside BB.

Definition at line 67 of file OrderedBasicBlock.cpp.

References assert(), llvm::Instruction::getParent(), and if().

Referenced by propagateMetadata().


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