[PATCH] D49915: [IR] Add a boolean field in DILocation to know if a line must covered or not

calixte via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 14 04:42:23 PDT 2018


calixte added a comment.

DILocation is a subclass of MDNode which is itself a subclass of Metadata. And in Metadata there is "unsigned char Storage" which uses only 2 bits so 6 bits are available here.
Maybe I could add "unsigned char ImplicitCode : 1" and "unsigned char Storage: 7" in class Metadata and so don't increase the DILocation size.
What do you think ?


Repository:
  rL LLVM

https://reviews.llvm.org/D49915





More information about the llvm-commits mailing list