[PATCH] D73257: [AST] Compress the FixedPointSemantics type better.
Bevin Hansson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 8 05:57:43 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd5d0d8eb7d09: [AST] Compress the FixedPointSemantics type better. (authored by ebevhan).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73257/new/
https://reviews.llvm.org/D73257
Files:
clang/include/clang/Basic/FixedPoint.h
Index: clang/include/clang/Basic/FixedPoint.h
===================================================================
--- clang/include/clang/Basic/FixedPoint.h
+++ clang/include/clang/Basic/FixedPoint.h
@@ -75,11 +75,11 @@
}
private:
- unsigned Width;
- unsigned Scale;
- bool IsSigned;
- bool IsSaturated;
- bool HasUnsignedPadding;
+ unsigned Width : 16;
+ unsigned Scale : 13;
+ unsigned IsSigned : 1;
+ unsigned IsSaturated : 1;
+ unsigned HasUnsignedPadding : 1;
};
/// The APFixedPoint class works similarly to APInt/APSInt in that it is a
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73257.255998.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200408/0dcdf34c/attachment.bin>
More information about the cfe-commits
mailing list