[all-commits] [llvm/llvm-project] eccf7f: [AST] Add fixed-point subtraction constant evaluat...

Bevin Hansson via All-commits all-commits at lists.llvm.org
Fri Jun 26 04:42:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eccf7fc7b31a00823a0fe6c782ef312b3ba743c4
      https://github.com/llvm/llvm-project/commit/eccf7fc7b31a00823a0fe6c782ef312b3ba743c4
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/FixedPoint.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Basic/FixedPoint.cpp
    M clang/test/Frontend/fixed_point_sub.c

  Log Message:
  -----------
  [AST] Add fixed-point subtraction constant evaluation.

Reviewers: rjmccall, leonardchan

Subscribers: cfe-commits

Tags: #clang

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


  Commit: 53f5c8b4a14c2ef89d44062a3a045be064bdc0e7
      https://github.com/llvm/llvm-project/commit/53f5c8b4a14c2ef89d44062a3a045be064bdc0e7
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/FixedPoint.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Basic/FixedPoint.cpp
    M clang/test/Frontend/fixed_point_mul.c

  Log Message:
  -----------
  [AST] Add fixed-point multiplication constant evaluation.

Reviewers: rjmccall, leonardchan, bjope

Subscribers: cfe-commits

Tags: #clang

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


  Commit: 94e8ec631dda98639930c3fcf6b84148cd58cd59
      https://github.com/llvm/llvm-project/commit/94e8ec631dda98639930c3fcf6b84148cd58cd59
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/FixedPoint.h
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Basic/FixedPoint.cpp
    M clang/test/Frontend/fixed_point_div.c

  Log Message:
  -----------
  [AST] Add fixed-point division constant evaluation.

Reviewers: rjmccall, leonardchan, bjope

Subscribers: cfe-commits

Tags: #clang

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


  Commit: 474177c05381a6eb2971e67753481b5efc78d848
      https://github.com/llvm/llvm-project/commit/474177c05381a6eb2971e67753481b5efc78d848
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticASTKinds.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/Frontend/fixed_point_errors.c

  Log Message:
  -----------
  [AST] Improve overflow diagnostics for fixed-point constant evaluation.

Summary:
Diagnostics for overflow were not being produced for fixed-point
evaluation. This patch refactors a bit of the evaluator and adds
a proper diagnostic for these cases.

Reviewers: rjmccall, leonardchan, bjope

Subscribers: cfe-commits

Tags: #clang

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


  Commit: da2f852e1913a16a1c6940ce3d3e47158ae5ba0e
      https://github.com/llvm/llvm-project/commit/da2f852e1913a16a1c6940ce3d3e47158ae5ba0e
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-06-26 (Fri, 26 Jun 2020)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    A clang/test/Frontend/fixed_point_crash.c

  Log Message:
  -----------
  [AST] Fix certain consteval assignment and comma operator issues with fixed-point types.

Summary:
Assignment and comma operators for fixed-point types were being constevaled as other
binary operators, but they need special treatment.

Reviewers: rjmccall, leonardchan, bjope

Subscribers: cfe-commits

Tags: #clang

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


Compare: https://github.com/llvm/llvm-project/compare/6fafde038722...da2f852e1913


More information about the All-commits mailing list