The new helpers are supposed to be used in clang to generate TBAA information in the new format proposed in this thread:
http://lists.llvm.org/pipermail/llvm-dev/2017-November/118748.html
Paths
| Differential D39956
[IR] Add MDBuilder helpers for the new TBAA metadata format ClosedPublic Authored by kosarev on Nov 13 2017, 5:09 AM.
Details Summary The new helpers are supposed to be used in clang to generate TBAA information in the new format proposed in this thread: http://lists.llvm.org/pipermail/llvm-dev/2017-November/118748.html
Diff Detail Event TimelineComment Actions Changed the order of metadata nodes describing structure fields so that the type node comes first. This agrees with the order of nodes in access tags and type nodes in the old format where offsets come after type nodes. Also simplifies adopting the existing code to the new format a bit.
Comment Actions LGTM
This revision is now accepted and ready to land.Dec 14 2017, 3:02 PM Closed by commit rL320993: [IR] Add MDBuilder helpers for the new TBAA metadata format (authored by kosarev). · Explain WhyDec 18 2017, 8:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 123770 include/llvm/IR/MDBuilder.h
lib/IR/MDBuilder.cpp
|
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?