ΒΆvoid FindFunctionBackedges(
const llvm::Function& F,
SmallVectorImpl<std::pair<const BasicBlock*,
const BasicBlock*>>&
Result)
void FindFunctionBackedges(
const llvm::Function& F,
SmallVectorImpl<std::pair<const BasicBlock*,
const BasicBlock*>>&
Result)
Description
Analyze the specified function to find all of the loop backedges in the function and return them. This is a relatively cheap (compared to computing dominators and loop info) analysis. The output is added to Result, as pairs of <from ,to> edge info.
Declared at: llvm/include/llvm/Analysis/CFG.h:33
Parameters
- const llvm::Function& F
- SmallVectorImpl<std::pair<const BasicBlock*, const BasicBlock*>>& Result