[TLI] Unify LibFunc attribute inference. NFCI.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 19:04:40 +0000 (19:04 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Wed, 27 Apr 2016 19:04:40 +0000 (19:04 +0000)
commitb0624a2cb4838adf5c9634a723e483f6776a0301
tree46d587860dcc140221a1e7b00c23fe08629c15e1
parentd765a82b54c63c4d4d1c98ca55c189366f50043a
[TLI] Unify LibFunc attribute inference. NFCI.

Now the pass is just a tiny wrapper around the util. This lets us reuse
the logic elsewhere (done here for BuildLibCalls) instead of duplicating
it.

The next step is to have something like getOrInsertLibFunc that also
sets the attributes.

Differential Revision: http://reviews.llvm.org/D19470

llvm-svn: 267759
llvm/include/llvm/Transforms/Utils/BuildLibCalls.h
llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
llvm/lib/Transforms/Utils/BuildLibCalls.cpp