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

#include <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 ( const BasicBlock BasicB)

Definition at line 28 of file OrderedBasicBlock.cpp.

References llvm::BasicBlock::end().

Member Function Documentation

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.

Definition at line 65 of file OrderedBasicBlock.cpp.

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


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