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)
commit9e89ba31f16a960239a750a26a982b4c9dfe8949
tree4b985f2525e7c6470e7a9d345b5c7eb7ffa889fe
parent0c913735c7f66d6bcf0807fac4018a867c3a77e0
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
22 files changed:
include/llvm/LinkAllPasses.h
include/llvm/Transforms/IPO.h
lib/Transforms/IPO/AddReadAttrs.cpp [deleted file]
lib/Transforms/IPO/CMakeLists.txt
lib/Transforms/IPO/FunctionAttrs.cpp [new file with mode: 0644]
test/Transforms/AddReadAttrs/2008-09-03-Mutual.ll [deleted file]
test/Transforms/AddReadAttrs/2008-09-03-ReadNone.ll [deleted file]
test/Transforms/AddReadAttrs/2008-09-03-ReadOnly.ll [deleted file]
test/Transforms/AddReadAttrs/2008-09-13-VolatileRead.ll [deleted file]
test/Transforms/AddReadAttrs/2008-10-04-LocalMemory.ll [deleted file]
test/Transforms/AddReadAttrs/2008-12-29-Constant.ll [deleted file]
test/Transforms/AddReadAttrs/dg.exp [deleted file]
test/Transforms/FunctionAttrs/2008-09-03-Mutual.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/2008-09-03-ReadNone.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/2008-09-03-ReadOnly.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/2008-09-13-VolatileRead.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/2008-10-04-LocalMemory.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/2008-12-29-Constant.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll [new file with mode: 0644]
test/Transforms/FunctionAttrs/dg.exp [new file with mode: 0644]
tools/opt/opt.cpp
win32/Transforms/Transforms.vcproj