[llvm] [nfc] Add doc comment for `canReturn` in Analysis/CFG.h (PR #135862)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 14:42:08 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: Mircea Trofin (mtrofin)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/135862.diff
1 Files Affected:
- (modified) llvm/include/llvm/Analysis/CFG.h (+4-1)
``````````diff
diff --git a/llvm/include/llvm/Analysis/CFG.h b/llvm/include/llvm/Analysis/CFG.h
index 8451e88146d7c..052ffb2872af7 100644
--- a/llvm/include/llvm/Analysis/CFG.h
+++ b/llvm/include/llvm/Analysis/CFG.h
@@ -174,7 +174,10 @@ bool containsIrreducibleCFG(RPOTraversalT &RPOTraversal, const LoopInfoT &LI) {
return false;
}
+
+/// Return true if there is at least a path through which F can return, false if
+/// there is no such path.
bool canReturn(const Function &F);
-} // End llvm namespace
+} // namespace llvm
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/135862
More information about the llvm-commits
mailing list