[PATCH] D39956: [IR] Add MDBuilder helpers for the new TBAA metadata format
Ivan Kosarev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 01:57:24 PST 2017
kosarev added inline comments.
================
Comment at: include/llvm/IR/MDBuilder.h:153
uint64_t Size;
- MDNode *TBAA;
- TBAAStructField(uint64_t Offset, uint64_t Size, MDNode *TBAA) :
- Offset(Offset), Size(Size), TBAA(TBAA) {}
+ MDNode *Type;
+ TBAAStructField(uint64_t Offset, uint64_t Size, MDNode *Type) :
----------------
We refer to this field in clang's CodeGenTBAA::getBaseTypeInfoHelper(), so I should either fix that function just after committing this patch (and then the first commit won't be buildable) or commit a series of changes so that every revision is buildable. Say, I could temporarily add a getType() method, then switch getBaseTypeInfoHelper() to use it, then rename the field, then fix getBaseTypeInfoHelper() to refer to the new name and then remove getType(). Can you please advice on what way is preferred and whether it would be okay to do that without pre-review?
https://reviews.llvm.org/D39956
More information about the llvm-commits
mailing list