[all-commits] [llvm/llvm-project] 044958: [NFC][PowerPC] Cleanup isImm and getImmEncoding fu...
Lei Huang via All-commits
all-commits at lists.llvm.org
Mon Oct 6 07:40:57 PDT 2025
Branch: refs/heads/users/lei137/CommonizeGetImmEncoding
Home: https://github.com/llvm/llvm-project
Commit: 044958504a934f3fa11655e44b14a74f7b482c55
https://github.com/llvm/llvm-project/commit/044958504a934f3fa11655e44b14a74f7b482c55
Author: Lei Huang <lei at ca.ibm.com>
Date: 2025-10-06 (Mon, 06 Oct 2025)
Changed paths:
M llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
M llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.h
M llvm/lib/Target/PowerPC/PPCInstr64Bit.td
M llvm/lib/Target/PowerPC/PPCRegisterInfo.td
Log Message:
-----------
[NFC][PowerPC] Cleanup isImm and getImmEncoding functions
Refactor and replace explicit imm functions `getImm*Encodng|isU*Imm|isS*Imm` to
a template function that takes int length. This is in prep for followup batch
to implement paddis which takes a pcrel Imm == 32bits. Doing this refactor so
we don't have to copy and paste the same set of functions again with only the
bit length changes.
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