[llvm-dev] About CodeGen quality
陳韋任 via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 16 12:34:49 PDT 2017
2017-06-17 3:19 GMT+08:00 Hiroshi 7 Inoue <INOUEHRS at jp.ibm.com>:
> For this specific case, modifying source code (or the frontend) to use a
> struct instead of
> bitfield seems to be an easy way since all sizes of bitfields are 8 bits.
> But you cannot?
> For general cases, you may want to enhance backend to emit
> bitextract/bitset.
>
The original test case was modified as it is, the bitfield are not always
8 bits.
And sure, emitting bitextract/bitset will improve the code quality.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170617/92302dfb/attachment.html>
More information about the llvm-dev
mailing list