Move library call prototype attribute inference to functionattrs
authorMeador Inge <meadori@codesourcery.com>
Thu, 21 Mar 2013 00:55:59 +0000 (00:55 +0000)
committerMeador Inge <meadori@codesourcery.com>
Thu, 21 Mar 2013 00:55:59 +0000 (00:55 +0000)
commit6b6a161ccfe252b6c167b3a580b42aea0c4e10ab
tree973aa127be6e44b1a2453fd7804f5008c974c781
parentb6f3905450dbb1ed764147c7743162d3ceaedc2f
Move library call prototype attribute inference to functionattrs

The simplify-libcalls pass implemented a doInitialization hook to infer
function prototype attributes for well-known functions.  Given that the
simplify-libcalls pass is going away *and* that the functionattrs pass
is already in place to deduce function attributes, I am moving this logic
to the functionattrs pass.  This approach was discussed during patch
review:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20121126/157465.html.

llvm-svn: 177619
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp
llvm/test/Transforms/FunctionAttrs/2009-01-04-Annotate.ll [moved from llvm/test/Transforms/SimplifyLibCalls/2009-01-04-Annotate.ll with 91% similarity]
llvm/test/Transforms/FunctionAttrs/annotate-1.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/2009-02-11-NotInitialized.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/strto-1.ll
llvm/test/Transforms/SimplifyLibCalls/2009-02-11-NotInitialized.ll [deleted file]