[#llvm-Function-viewCFG-07] = xref:llvm.adoc[llvm]::xref:llvm/Function.adoc[Function]::viewCFG :relfileprefix: ../../ :mrdocs: Display this function's CFG with optional edge weights and output file. == Synopsis Declared in `<llvm/IR/Function.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void viewCFG( bool ViewCFGOnly, xref:llvm/BlockFrequencyInfo.adoc[BlockFrequencyInfo] const* BFI, xref:llvm/BranchProbabilityInfo.adoc[BranchProbabilityInfo] const* BPI, char const* OutputFileName = nullptr) const; ---- == Parameters [cols="1,4"] |=== | Name| Description | *ViewCFGOnly* | If true, omit basic‐block contents from graph nodes. | *BFI* | Optional block frequency info for edge labels, or null. | *BPI* | Optional branch probability info for edge labels, or null. | *OutputFileName* | Optional path for the generated dot file, or null. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#