This is an archive of the discontinued LLVM Phabricator instance.

[llvm][NFC] Refactor AutoUpgrade case 'n'
ClosedPublic

Authored by urnathan on Aug 21 2023, 12:36 PM.

Details

Summary

The NVPTX intrinsics are under 'n'. While that does first check for 'nvvm.', it didn't use the consume_front API, so fix that. Refactor the helper function to group matchers on the first component and check that first, rather than as a single monolithic list. Do similarly with the final set of intrinsics, which have a lot of commonality in the matching.
Finally reorder the argument/return type checking wrt name checking -- the former is going to be cheaper, so do that first before checking the name.

Diff Detail

Event Timeline

urnathan created this revision.Aug 21 2023, 12:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 12:36 PM
urnathan requested review of this revision.Aug 21 2023, 12:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 12:36 PM
tra accepted this revision.Aug 21 2023, 1:55 PM
tra added a subscriber: tra.

Nice.

This revision is now accepted and ready to land.Aug 21 2023, 1:55 PM
This revision was automatically updated to reflect the committed changes.