summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCSubtargetInfo.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2018-08-28 22:50:01 +0000
committerFrederic Riss <friss@apple.com>2018-08-28 22:50:01 +0000
commitae6ca2fc3f5d043eab69e9f3122d7775d6354f98 (patch)
treec95dbd007ea9156290357a193735d735d1bbff5f /llvm/lib/MC/MCSubtargetInfo.cpp
parenta65bf65e0bb4f2c119bb388e7f036e664d108669 (diff)
downloadbcm5719-llvm-ae6ca2fc3f5d043eab69e9f3122d7775d6354f98.tar.gz
bcm5719-llvm-ae6ca2fc3f5d043eab69e9f3122d7775d6354f98.zip
Allow IRInterpreter to deal with non-power-of-2 sized types to support some bitfield accesses.
Summary: 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. Reviewers: jingham, clayborg Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D51245 llvm-svn: 340880
Diffstat (limited to 'llvm/lib/MC/MCSubtargetInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud