LLVM
8.0.1
|
#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... | |
Definition at line 34 of file OrderedBasicBlock.h.
OrderedBasicBlock::OrderedBasicBlock | ( | const BasicBlock * | BasicB | ) |
Definition at line 28 of file OrderedBasicBlock.cpp.
References assert(), B, llvm::BasicBlock::begin(), llvm::BasicBlock::end(), llvm::Instruction::getParent(), and llvm::ARM_PROC::IE.
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().