[PATCH] D77939: [MC] Use subclass data for MCExpr to reduce memory usage

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 13:35:10 PDT 2020


nikic updated this revision to Diff 257095.
nikic marked 3 inline comments as done.
nikic added a comment.

- Make SubclassData last ctor parameter and optional.
- Add assertion that SubclassData is not too large.
- Replace various magic numbers with constants.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77939/new/

https://reviews.llvm.org/D77939

Files:
  include/llvm/MC/MCExpr.h
  lib/MC/MCExpr.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77939.257095.patch
Type: text/x-patch
Size: 7436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/6dc238e7/attachment.bin>


More information about the llvm-commits mailing list