HomePhabricator

[FPEnv] Evaluate constant expressions under non-default rounding modes

Authored by sepavloff on Sep 17 2020, 12:10 AM.

Description

[FPEnv] Evaluate constant expressions under non-default rounding modes

The change implements evaluation of constant floating point expressions
under non-default rounding modes. The main objective was to support
evaluation of global variable initializers, where constant rounding mode
may be specified by #pragma STDC FENV_ROUND.

Differential Revision: https://reviews.llvm.org/D87822