This is an archive of the discontinued LLVM Phabricator instance.

[AppleAccelTable][NFC] Improve code readability
ClosedPublic

Authored by fdeazeve on Jun 5 2023, 6:45 AM.

Details

Summary

This commit does a few minor NFC cleanups:

  • A variable was called "Atom", probably trying to claim it was an AtomType.

This was incorrect, it is actually a FormValue.

  • LLVM provides a zip_equal to express the intent of asserting ranges with the

same size. We change the lookup method to use that.

  • The use of tuples made the code slightly difficult to follow, as such we

unpack the tuple with structure binding to improve readability.

Depends on D152157

Diff Detail

Event Timeline

fdeazeve created this revision.Jun 5 2023, 6:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 6:45 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
fdeazeve requested review of this revision.Jun 5 2023, 6:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 6:45 AM
fdeazeve updated this revision to Diff 528424.Jun 5 2023, 7:02 AM

Update base

aprantl accepted this revision.Jun 5 2023, 9:24 AM
This revision is now accepted and ready to land.Jun 5 2023, 9:24 AM
JDevlieghere accepted this revision.Jun 6 2023, 9:21 AM
This revision was landed with ongoing or failed builds.Jun 8 2023, 1:36 PM
This revision was automatically updated to reflect the committed changes.