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...

Called upon reaching a block via a CFG edge. If this block is contained in the loop and has not been visited, then mark it preorder visited and return true (i.e., traverse the edge).

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