[all-commits] [llvm/llvm-project] 0f88c2: AMDGPU: Move some code out of macro for defining r...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Wed Aug 27 22:41:47 PDT 2025
Branch: refs/heads/users/arsenm/amdgpu/disassembler-reduce-code-in-macro
Home: https://github.com/llvm/llvm-project
Commit: 0f88c29bcf867ca1789351f9c499b9dc4e3c64c0
https://github.com/llvm/llvm-project/commit/0f88c29bcf867ca1789351f9c499b9dc4e3c64c0
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2025-08-28 (Thu, 28 Aug 2025)
Changed paths:
M llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
Log Message:
-----------
AMDGPU: Move some code out of macro for defining regclass decoder
Use a template function for the implementation, and use the macro
to define a constant function pointer with the expected name. Not
sure if there's a cleaner way to do this. This worked out to less
code using variadic templates to forward the arguments, but it added
a noticable ~10 seconds to compilation time on this file.
This will help avoid another copy-paste version of this function
in a future change.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list