[PATCH] D70256: [FPEnv] clang support for constrained FP builtins

Kevin P. Neal via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 10:25:00 PST 2019


kpn created this revision.
kpn added reviewers: rjmccall, dblaikie.
Herald added projects: clang, LLVM.
Herald added a subscriber: llvm-commits.

Currently if constrained fp math is requested clang is still emitting calls to the non-constrained versions of math builtins. This patch corrects that for calls that are not target-specific.

I really wanted to keep constrained/non-constrained decisions in the IRBuilder, but that causes complications. This version stays close to that ideal without the complications.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70256

Files:
  clang/lib/CodeGen/CGBuiltin.cpp
  clang/test/CodeGen/constrained-math-builtins.c
  llvm/include/llvm/IR/IRBuilder.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70256.229311.patch
Type: text/x-patch
Size: 26951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191114/843ad002/attachment-0001.bin>


More information about the cfe-commits mailing list