[PATCH] D48661: [Fixed Point Arithmetic] Fixed Point Constant
Leonard Chan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 2 16:11:42 PDT 2018
leonardchan updated this revision to Diff 153821.
leonardchan marked 10 inline comments as done.
leonardchan edited the summary of this revision.
leonardchan added a comment.
- Added tests
- Moved all conversion logic into `convert`
- Saturation is checked by checking the bits above the sign bit in the destination type
Repository:
rC Clang
https://reviews.llvm.org/D48661
Files:
include/clang/AST/ASTContext.h
include/clang/Basic/FixedPoint.h
include/clang/Basic/TargetInfo.h
lib/AST/ASTContext.cpp
lib/Basic/CMakeLists.txt
lib/Basic/FixedPoint.cpp
lib/Sema/SemaExpr.cpp
test/Frontend/fixed_point_declarations.c
unittests/Basic/CMakeLists.txt
unittests/Basic/FixedPointTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48661.153821.patch
Type: text/x-patch
Size: 40609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180702/ccd5927c/attachment-0001.bin>
More information about the cfe-commits
mailing list