summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-07-03 19:19:12 +0000
committerEli Bendersky <eliben@google.com>2013-07-03 19:19:12 +0000
commit64b22d8351a83593220803ed702e036c73bb8710 (patch)
tree11533f404f36070ded3a61ecd5b2cc7ea3ed3aee /lib/CodeGen/CGExpr.cpp
parent6f0bca7a0ababdfe141f7b1c0435f4ff71d1bff5 (diff)
downloadclang-64b22d8351a83593220803ed702e036c73bb8710.tar.gz
clang-64b22d8351a83593220803ed702e036c73bb8710.tar.bz2
clang-64b22d8351a83593220803ed702e036c73bb8710.tar.xz
Add target hook CodeGen queries when generating builtin pow*.
Without fmath-errno, Clang currently generates calls to @llvm.pow.* intrinsics when it sees pow*(). This may not be suitable for all targets (for example le32/PNaCl), so the attached patch adds a target hook that CodeGen queries. The target can state its preference for having or not having the intrinsic generated. Non-PNaCl behavior remains unchanged; PNaCl-specific test added. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions