[FPEnv] Teach the IRBuilder about constrained FPTrunc and FPExt
authorKevin P. Neal <kevin.neal@sas.com>
Thu, 18 Jul 2019 18:01:57 +0000 (18:01 +0000)
committerKevin P. Neal <kevin.neal@sas.com>
Thu, 18 Jul 2019 18:01:57 +0000 (18:01 +0000)
commitd91998a5ac5e5155419d3ea1e8b4113792626fe3
treeb4eff0cb5bf5616ceb245ada218a807b09a19451
parente21fc8770ca4900c131f51a749dac480006d6591
[FPEnv] Teach the IRBuilder about constrained FPTrunc and FPExt

The IRBuilder doesn't know that FPTrunc and FPExt have constrained
equivalents. Add 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/D64934

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