summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-12-01 23:15:52 +0000
committerSanjay Patel <spatel@rotateright.com>2017-12-01 23:15:52 +0000
commit3e287b4d3535fefd048306e63f9382c5e03ad3fa (patch)
treebf7cfcaf47efd476a8c93d6d107dd51963c4fffe /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py
parente7487e4c924071f764f58d8544e939137b374399 (diff)
downloadbcm5719-llvm-3e287b4d3535fefd048306e63f9382c5e03ad3fa.tar.gz
bcm5719-llvm-3e287b4d3535fefd048306e63f9382c5e03ad3fa.zip
[CodeGen] convert math libcalls/builtins to equivalent LLVM intrinsics
There are 20 LLVM math intrinsics that correspond to mathlib calls according to the LangRef: http://llvm.org/docs/LangRef.html#standard-c-library-intrinsics We were only converting 3 mathlib calls (sqrt, fma, pow) and 12 builtin calls (ceil, copysign, fabs, floor, fma, fmax, fmin, nearbyint, pow, rint, round, trunc) to their intrinsic-equivalents. This patch pulls the transforms together and handles all 20 cases. The switch is guarded by a check for const-ness to make sure we're not doing the transform if errno could possibly be set by the libcall or builtin. Differential Revision: https://reviews.llvm.org/D40044 llvm-svn: 319593
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud