HomePhabricator

[FPEnv] Add fptosi and fptoui constrained intrinsics.

Authored by kpn on Aug 28 2019, 9:33 AM.

Description

[FPEnv] Add fptosi and fptoui constrained intrinsics.

This implements constrained floating point intrinsics for FP to signed and
unsigned integers.

Quoting from D32319:
The purpose of the constrained intrinsics is to force the optimizer to
respect the restrictions that will be necessary to support things like the
STDC FENV_ACCESS ON pragma without interfering with optimizations when
these restrictions are not needed.

Reviewed by: Andrew Kaylor, Craig Topper, Hal Finkel, Cameron McInally, Roman Lebedev, Kit Barton
Approved by: Craig Topper
Differential Revision: http://reviews.llvm.org/D63782

llvm-svn: 370228

Details

Committed
kpnAug 28 2019, 9:33 AM
Reviewer
andrew
Differential Revision
D63782: [FPEnv] Add fptosi and fptoui constrained intrinsics
Parents
rGf48ebacfcc94: [TestCppOperators] Enable TestCppOperators on Windows.
Branches
Unknown
Tags
Unknown