[all-commits] [llvm/llvm-project] 6314f4: [FPEnv] Evaluate constant expressions under non-de...

Serge Pavlov via All-commits all-commits at lists.llvm.org
Sat Sep 26 04:57:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6314f412a83d61e293e3696d4afe1797a4001ac4
      https://github.com/llvm/llvm-project/commit/6314f412a83d61e293e3696d4afe1797a4001ac4
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2020-09-26 (Sat, 26 Sep 2020)

  Changed paths:
    M clang/include/clang/AST/Expr.h
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/Expr.cpp
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/AST/TextNodeDumper.cpp
    M clang/lib/Sema/SemaAttr.cpp
    A clang/test/AST/const-fpfeatures-diag.c
    A clang/test/AST/const-fpfeatures.c
    A clang/test/AST/const-fpfeatures.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list