This is an archive of the discontinued LLVM Phabricator instance.

Common code preparation for tblgen-types patch
ClosedPublic

Authored by jdd on Sep 24 2020, 3:39 PM.

Details

Summary

Cleanup and add methods which https://reviews.llvm.org/D86904 requires. Breaking up to lower review load.

Diff Detail

Event Timeline

jdd created this revision.Sep 24 2020, 3:39 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
stephenneuendorffer published this revision for review.Sep 24 2020, 3:50 PM

Seems generally reasonable to me.

llvm/lib/TableGen/Record.cpp
2243–2280

Probably this should now call getValueAsOptionalString?

2303

No case for UnsetInit needed here?

jdd updated this revision to Diff 294206.Sep 24 2020, 5:15 PM

Corrections based on feedback

jdd marked 2 inline comments as done.Sep 24 2020, 5:16 PM

Integrated feedback

jdd edited the summary of this revision. (Show Details)Sep 24 2020, 5:18 PM
jdd added a reviewer: rriddle.
mehdi_amini accepted this revision.Sep 24 2020, 8:57 PM
This revision is now accepted and ready to land.Sep 24 2020, 8:57 PM
jdd added a comment.EditedSep 24 2020, 9:16 PM

This is my first patch, so I’ll need someone to land it for me please. @mehdi_amini, since you reviewed it, would you be so kind as to commit it? I prefer 'John Demme' <me@teqdruid.com>.

This revision was automatically updated to reflect the committed changes.