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.
Details
Details
- Reviewers
nikic arsenm tra - Commits
- rGb045c36ab92f: [llvm][NFC]Refactor AutoUpgrader case 'n'.
Diff Detail
Diff Detail