[FPEnv] Teach the IRBuilder about constrained FPToSI and FPToUI.
authorKevin P. Neal <kevin.neal@sas.com>
Fri, 6 Sep 2019 18:04:34 +0000 (18:04 +0000)
committerKevin P. Neal <kevin.neal@sas.com>
Fri, 6 Sep 2019 18:04:34 +0000 (18:04 +0000)
commitfab40fce3ffecc3f93068a15e370c0a1abfdb8d0
treebc4464570db4f4fbc3193c58b566973fab02d8cc
parentb1dcbf1b164762018e82cb834bfaf9e0230155b7
[FPEnv] Teach the IRBuilder about constrained FPToSI and FPToUI.

The IRBuilder doesn't know that the two floating point to integer instructions
have constrained equivalents. This patch adds the support by building on
the strict FP mode now present in the IRBuilder.

Reviewed by: John McCall
Approved by: John McCall
Differential Revision: https://reviews.llvm.org/D67291

llvm-svn: 371235
llvm/include/llvm/IR/IRBuilder.h
llvm/unittests/IR/IRBuilderTest.cpp