[all-commits] [llvm/llvm-project] 808ac5: [Fixed Point] Use FixedPointBuilder to codegen fix...

Bevin Hansson via All-commits all-commits at lists.llvm.org
Mon Aug 24 05:38:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 808ac54645212ddc9aba150cdc97454e36fb9521
      https://github.com/llvm/llvm-project/commit/808ac54645212ddc9aba150cdc97454e36fb9521
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/Frontend/fixed_point_add.c
    M clang/test/Frontend/fixed_point_div.c
    M clang/test/Frontend/fixed_point_mul.c
    M clang/test/Frontend/fixed_point_sub.c
    M clang/test/Frontend/fixed_point_unary.c

  Log Message:
  -----------
  [Fixed Point] Use FixedPointBuilder to codegen fixed-point IR.

This changes the methods in CGExprScalar to use
FixedPointBuilder to generate IR for fixed-point
conversions and operations.

Since FixedPointBuilder emits padded operations slightly
differently than the original code, some tests change.

Reviewed By: leonardchan

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


  Commit: 577f8b157a03055821341146ed0617e3b103fdaf
      https://github.com/llvm/llvm-project/commit/577f8b157a03055821341146ed0617e3b103fdaf
  Author: Bevin Hansson <bevin.hansson at ericsson.com>
  Date:   2020-08-24 (Mon, 24 Aug 2020)

  Changed paths:
    M clang/lib/CodeGen/CGExprScalar.cpp
    M clang/test/Frontend/fixed_point_compound.c
    M clang/test/Frontend/fixed_point_shift.c
    A clang/test/Frontend/fixed_point_shift_const.c

  Log Message:
  -----------
  [Fixed Point] Add codegen for fixed-point shifts.

This patch adds codegen to Clang for fixed-point shift
operations.

Reviewed By: leonardchan

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


Compare: https://github.com/llvm/llvm-project/compare/09e7fe9859b4...577f8b157a03


More information about the All-commits mailing list