llvm::LoopBlocksTraversal::insertEdge

insertEdge overloads

Synopses

Declared in <llvm/ADT/PostOrderIterator.h>

Add edge and return whether To should be visited. From is nullopt for the root node.

bool
insertEdge(
    std::optional<NodeRef> From,
    NodeRef To);
» more...

Decide whether to traverse a CFG edge into a loop block.

bool
insertEdge(
    std::optional<BasicBlock*> From,
    BasicBlock* BB);
» more...

Return Value

  • True if To should be visited.
  • True if the edge should be traversed.

Parameters

NameDescription
FromPredecessor node, or nullopt for the traversal root.
ToSuccessor being considered.
BBDestination block of the CFG edge.