OSDN Git Service

Rename AddReadAttrs to FunctionAttrs, and teach it how
authorDuncan Sands <baldrick@free.fr>
Wed, 31 Dec 2008 16:14:43 +0000 (16:14 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 31 Dec 2008 16:14:43 +0000 (16:14 +0000)
commit1410dfde5c04d0c94590baa0b86467e9153b4af6
tree4b985f2525e7c6470e7a9d345b5c7eb7ffa889fe
parent250918eb177828db01fb92ba13152ddbc0d0ce92
Rename AddReadAttrs to FunctionAttrs, and teach it how
to work out (in a very simplistic way) which function
arguments (pointer arguments only) are only dereferenced
and so do not escape.  Mark such arguments 'nocapture'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61525 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/LinkAllPasses.h
include/llvm/Transforms/IPO.h
lib/Transforms/IPO/CMakeLists.txt
lib/Transforms/IPO/FunctionAttrs.cpp [moved from lib/Transforms/IPO/AddReadAttrs.cpp with 52% similarity]
test/Transforms/FunctionAttrs/2008-09-03-Mutual.ll [moved from test/Transforms/AddReadAttrs/2008-09-03-Mutual.ll with 69% similarity]
test/Transforms/FunctionAttrs/2008-09-03-ReadNone.ll [moved from test/Transforms/AddReadAttrs/2008-09-03-ReadNone.ll with 76% similarity]
test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll [moved from test/Transforms/AddReadAttrs/2008-09-03-ReadOnly.ll with 58% similarity]
test/Transforms/FunctionAttrs/2008-09-13-VolatileRead.ll [moved from test/Transforms/AddReadAttrs/2008-09-13-VolatileRead.ll with 65% similarity]
test/Transforms/FunctionAttrs/2008-10-04-LocalMemory.ll [moved from test/Transforms/AddReadAttrs/2008-10-04-LocalMemory.ll with 68% similarity]
test/Transforms/FunctionAttrs/2008-12-29-Constant.ll [moved from test/Transforms/AddReadAttrs/2008-12-29-Constant.ll with 63% similarity]
test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/dg.exp [moved from test/Transforms/AddReadAttrs/dg.exp with 100% similarity]
tools/opt/opt.cpp
win32/Transforms/Transforms.vcproj