diff options
author | Duncan Sands <baldrick@free.fr> | 2009-01-01 20:45:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-01-01 20:45:19 +0000 |
commit | 88e76757deb4872fc5d0db8592019fa73bfecfe7 (patch) | |
tree | 94780201de97949a965530a981a000417c07db4d /lib | |
parent | b6e223a9e806921183da972253c49082a2e07944 (diff) | |
download | external_llvm-88e76757deb4872fc5d0db8592019fa73bfecfe7.zip external_llvm-88e76757deb4872fc5d0db8592019fa73bfecfe7.tar.gz external_llvm-88e76757deb4872fc5d0db8592019fa73bfecfe7.tar.bz2 |
Mention that this pass does escape analysis in the
leading comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index 52be0c9..fcdede2 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/lib/Transforms/IPO/FunctionAttrs.cpp @@ -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 { |