[Fixed Point] Use FixedPointBuilder to codegen fixed-point IR.
authorBevin Hansson <bevin.hansson@ericsson.com>
Thu, 20 Aug 2020 12:36:35 +0000 (14:36 +0200)
committerBevin Hansson <bevin.hansson@ericsson.com>
Mon, 24 Aug 2020 12:37:07 +0000 (14:37 +0200)
commit808ac54645212ddc9aba150cdc97454e36fb9521
tree6d2a8d2b8da9e1df976ca5380f7d1b7de8dd634e
parent09e7fe9859b4efeeb35697c095c9676e993fc03c
[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
clang/lib/CodeGen/CGExprScalar.cpp
clang/test/Frontend/fixed_point_add.c
clang/test/Frontend/fixed_point_div.c
clang/test/Frontend/fixed_point_mul.c
clang/test/Frontend/fixed_point_sub.c
clang/test/Frontend/fixed_point_unary.c