[all-commits] [llvm/llvm-project] b045c3: [llvm][NFC]Refactor AutoUpgrader case 'n'.
Nathan Sidwell via All-commits
all-commits at lists.llvm.org
Tue Aug 22 13:33:22 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b045c36ab92f4ff478dab678aaff4680fbccc7ea
https://github.com/llvm/llvm-project/commit/b045c36ab92f4ff478dab678aaff4680fbccc7ea
Author: Nathan Sidwell <nathan at acm.org>
Date: 2023-08-22 (Tue, 22 Aug 2023)
Changed paths:
M llvm/lib/IR/AutoUpgrade.cpp
Log Message:
-----------
[llvm][NFC]Refactor AutoUpgrader case 'n'.
The NVPTX intrinsics are under 'n'. Use the consume_front API, so fix
that. Refactor the helper function to group matchers on the first
component and check that first. 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.#
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D158445
More information about the All-commits
mailing list