[Fixed Point Arithmetic] Fixed Point and Integer Conversions
authorLeonard Chan <leonardchan@google.com>
Wed, 6 Mar 2019 00:28:43 +0000 (00:28 +0000)
committerLeonard Chan <leonardchan@google.com>
Wed, 6 Mar 2019 00:28:43 +0000 (00:28 +0000)
commit8f7caae00af070fb13416dbed207f3fe18e043e8
tree37b625e87df8172cf0fe29a715d2467c8d32e880
parentf0c21e2ff53a2745a325136f3812b4a0e6f61ea1
[Fixed Point Arithmetic] Fixed Point and Integer Conversions

This patch includes the necessary code for converting between a fixed point type and integer.
This also includes constant expression evaluation for conversions with these types.

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

llvm-svn: 355462
17 files changed:
clang/include/clang/AST/OperationKinds.def
clang/include/clang/Basic/FixedPoint.h
clang/lib/AST/Expr.cpp
clang/lib/AST/ExprConstant.cpp
clang/lib/Basic/FixedPoint.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/SemaChecking.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
clang/test/Frontend/fixed_point_conversions.c
clang/test/Frontend/fixed_point_errors.c
clang/test/Frontend/fixed_point_unknown_conversions.c