llvm::checkForCycles

Check the subgraph rooted at N for cycles.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

void
checkForCycles(
    SDNode const* N,
    SelectionDAG const* DAG = nullptr,
    bool force = false);

Description

When DAG is non-null, cycle diagnostics may include DAG context. When force is true, the check runs even in builds that normally skip it.

Parameters

NameDescription
NRoot node of the subgraph to check.
DAGOptional SelectionDAG used for diagnostics.
forceForce the cycle check when true.