clang 23.0.0git
CFGBackEdges.h File Reference
#include "clang/Analysis/CFG.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.

Functions

llvm::DenseMap< const CFGBlock *, const CFGBlock * > clang::findCFGBackEdges (const CFG &CFG)
 Finds and returns back edges in Clang CFGs.
llvm::SmallDenseSet< const CFGBlock * > clang::findNonStructuredLoopBackedgeNodes (const CFG &CFG)
 Returns a set of CFG blocks that is the source of a backedge and is not tracked as part of a structured loop (with CFGBlock::getLoopTarget).
bool clang::isBackedgeCFGNode (const CFGBlock &B, const llvm::SmallDenseSet< const CFGBlock * > &NonStructLoopBackedgeNodes)
 Given a backedge from B1 to B2, B1 is a "backedge node" in a CFG.