This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Target] Make addSupplementaryRegister() work on Register vector
ClosedPublic

Authored by mgorny on Oct 7 2021, 3:10 AM.

Details

Summary

Move DynamicRegisterInfo::AddSupplementaryRegister() into a standalone
function working on std::vector<DynamicRegisterInfo::Register>.

Diff Detail

Event Timeline

mgorny requested review of this revision.Oct 7 2021, 3:10 AM
mgorny created this revision.
labath accepted this revision.Oct 7 2021, 5:40 AM

Looks good. I'm not sure about the RemoteRegisterInfo name, but that's a topic for the patch that introduces it.

This revision is now accepted and ready to land.Oct 7 2021, 5:40 AM
mgorny updated this revision to Diff 377833.Oct 7 2021, 6:55 AM
mgorny retitled this revision from [lldb] [Target] Make addSupplementaryRegister() work on RRI vector to [lldb] [Target] Make addSupplementaryRegister() work on Register vector.
mgorny edited the summary of this revision. (Show Details)

Rebase after renaming RRI to DRI::Register.

mgorny updated this revision to Diff 377834.Oct 7 2021, 6:58 AM

Remove duplicate ASSERT_REG.

mgorny updated this revision to Diff 378438.Oct 9 2021, 5:37 AM

Add m_ prefix to vars in DynamicRegisterInfoRegisterTest class.

mgorny updated this revision to Diff 378442.Oct 9 2021, 5:57 AM

Make AssertRegisterInfo() args non-optional.

This revision was landed with ongoing or failed builds.Oct 11 2021, 8:02 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 8:02 AM