llvm::PostDominatorTree::addNewBlock

Add a new node to the dominator tree information.

Synopsis

Declared in <llvm/Support/GenericDomTree.h>

DomTreeNodeBase<BasicBlock>*
addNewBlock(
    BasicBlock* BB,
    BasicBlock* DomBB);

Description

This creates a new node as a child of DomBB dominator node, linking it into the children list of the immediate dominator.

Return Value

New dominator tree node that represents new CFG node.

Parameters

NameDescription
BBNew node in CFG.
DomBBCFG node that is dominator for BB.