Generalize getUnaryFloatFunction to handle any FP unary function, automatically
authorChris Lattner <sabre@nondot.org>
Wed, 9 Apr 2008 17:48:11 +0000 (17:48 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Apr 2008 17:48:11 +0000 (17:48 +0000)
commitcc7f168c6cb6c5a41de59aa524dd57593250ba5f
tree788de6d4eedf7ca1f8a6255330156f6fae7d2556
parent090a8166235b7bc32cb1bc6a73b47d0212181be7
Generalize getUnaryFloatFunction to handle any FP unary function, automatically
figuring out the suffix to use.  implement pow(2,x) -> exp2(x).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49437 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/SimplifyLibCalls.cpp
test/Transforms/SimplifyLibCalls/pow2.ll