[Fixed Point Arithmetic] FixedPointCast
authorLeonard Chan <leonardchan@google.com>
Mon, 15 Oct 2018 16:07:02 +0000 (16:07 +0000)
committerLeonard Chan <leonardchan@google.com>
Mon, 15 Oct 2018 16:07:02 +0000 (16:07 +0000)
commit99bda375a14e4c3b7d0adbc65293879899875fa6
tree747ceecaefd44bb95aa2f5779772ee519f70c77e
parent06ba9f52460b06f83c9da505aa10fe01d9546945
[Fixed Point Arithmetic] FixedPointCast

This patch is a part of https://reviews.llvm.org/D48456 in an attempt to
split them up. This contains the code for casting between fixed point types
and other fixed point types.

The method for converting between fixed point types is based off the convert()
method in APFixedPoint.

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

llvm-svn: 344530
17 files changed:
clang/include/clang/AST/OperationKinds.def
clang/include/clang/AST/Type.h
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/lib/AST/Expr.cpp
clang/lib/AST/ExprConstant.cpp
clang/lib/AST/Type.cpp
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprAgg.cpp
clang/lib/CodeGen/CGExprComplex.cpp
clang/lib/CodeGen/CGExprConstant.cpp
clang/lib/CodeGen/CGExprScalar.cpp
clang/lib/Edit/RewriteObjCFoundationAPI.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
clang/test/Frontend/fixed_point_conversions.c [new file with mode: 0644]
clang/test/Frontend/fixed_point_unknown_conversions.c [new file with mode: 0644]