Mention that this pass does escape analysis in the
authorDuncan Sands <baldrick@free.fr>
Thu, 1 Jan 2009 20:45:19 +0000 (20:45 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 1 Jan 2009 20:45:19 +0000 (20:45 +0000)
leading comments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61548 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionAttrs.cpp

index 52be0c906e1d09e1ec1b498efb914fa3224f9fee..fcdede2fa35e57b0085c02c8edba6a9ded83a705 100644 (file)
@@ -9,8 +9,10 @@
 //
 // This file implements a simple interprocedural pass which walks the
 // call-graph, looking for functions which do not access or only read
-// non-local memory, and marking them readnone/readonly.  It implements
-// this as a bottom-up traversal of the call-graph.
+// non-local memory, and marking them readnone/readonly.  It addition,
+// it deduces which function arguments (of pointer type) do not escape,
+// and marks them nocapture.  It implements this as a bottom-up traversal
+// of the call-graph.
 //
 //===----------------------------------------------------------------------===//
 
@@ -44,7 +46,7 @@ namespace {
     // AddNoCaptureAttrs - Deduce nocapture attributes for the SCC.
     bool AddNoCaptureAttrs(const std::vector<CallGraphNode *> &SCC);
 
-    // isCaptured - Returns whether this pointer value is captured.
+    // isCaptured - Returns true if this pointer value escapes.
     bool isCaptured(Function &F, Value *V);
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {