[Lldb-commits] [PATCH] D51245: Allow IRInterpreter to deal with non-power-of-2 sized types to support some bitfield accesses.
Frederic Riss via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 24 18:14:28 PDT 2018
friss created this revision.
friss added reviewers: jingham, clayborg.
For some bitfield patterns (like the one added by this commit), Clang will
generate non-regular data types like i24 or i48. This patch follows a
pretty naive approach of just bumping the type size to the next power of 2.
DataExtractor know how to deal with weird sizes. The operations on Scalar
do not know how to deal with those types though, so we have to legalize the
size when creating a Scalar.
https://reviews.llvm.org/D51245
Files:
packages/Python/lldbsuite/test/lang/c/bitfields/TestBitfields.py
packages/Python/lldbsuite/test/lang/c/bitfields/main.c
source/Expression/IRInterpreter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51245.162524.patch
Type: text/x-patch
Size: 3959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180825/d3894cb7/attachment.bin>
More information about the lldb-commits
mailing list