OSDN Git Service

[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)
commit76739f43a990e2599e6273b2f025fbee3e68f692
tree02281ed1b6cc4cd10b01943bad83f8fa948fff41
parent8a8efec992c2f15f456662070daf05edc5832237
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267759 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/BuildLibCalls.h
lib/Transforms/IPO/InferFunctionAttrs.cpp
lib/Transforms/Utils/BuildLibCalls.cpp