[PATCH] D87822: [FPEnv] Evaluate constant expressions under non-default rounding modes
Serge Pavlov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 03:25:37 PDT 2020
sepavloff created this revision.
sepavloff added reviewers: rsmith, rjmccall, mibintc, kpn.
Herald added a project: clang.
sepavloff requested review of this revision.
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`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87822
Files:
clang/lib/AST/ExprConstant.cpp
clang/lib/Sema/SemaAttr.cpp
clang/test/AST/const-fpfeatures-diag.c
clang/test/AST/const-fpfeatures.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87822.292451.patch
Type: text/x-patch
Size: 7075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200917/39ae04bc/attachment.bin>
More information about the cfe-commits
mailing list