[#llvm-checkForCycles-06] = xref:llvm.adoc[llvm]::checkForCycles :relfileprefix: ../ :mrdocs: Check the subgraph rooted at `N` for cycles. == Synopsis Declared in `<llvm/CodeGen/SelectionDAGNodes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void checkForCycles( xref:llvm/SDNode.adoc[SDNode] const* N, xref:llvm/SelectionDAG.adoc[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 [cols="1,4"] |=== | Name| Description | *N* | Root node of the subgraph to check. | *DAG* | Optional SelectionDAG used for diagnostics. | *force* | Force the cycle check when true. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#