[llvm] 998fc2c - [RISCV] Rename from VPseudoVGTR_VV_EEW to VPseudoVGTR_EI16_VV. NFC.
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 11:07:42 PDT 2024
Author: Michael Maitland
Date: 2024-05-23T11:06:55-07:00
New Revision: 998fc2c2a6a3bc0758c7964a988fa0dea5a4c620
URL: https://github.com/llvm/llvm-project/commit/998fc2c2a6a3bc0758c7964a988fa0dea5a4c620
DIFF: https://github.com/llvm/llvm-project/commit/998fc2c2a6a3bc0758c7964a988fa0dea5a4c620.diff
LOG: [RISCV] Rename from VPseudoVGTR_VV_EEW to VPseudoVGTR_EI16_VV. NFC.
This function only takes EEW=16 so we use that directly.
This commit comes from suggestion on #92768.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
index 522877df09a7d..f2c867a08ec24 100644
--- a/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+++ b/llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
@@ -2249,13 +2249,13 @@ multiclass VPseudoBinaryFV_VV_RM<LMULInfo m, string Constraint = "", int sew = 0
UsesVXRM=0>;
}
-multiclass VPseudoVGTR_VV_EEW<int eew, string Constraint = ""> {
+multiclass VPseudoVGTR_EI16_VV<string Constraint = ""> {
foreach m = MxList in {
defvar mx = m.MX;
foreach sew = EEWList in {
defvar dataEMULOctuple = m.octuple;
- // emul = lmul * eew / sew
- defvar idxEMULOctuple = !srl(!mul(dataEMULOctuple, eew), !logtwo(sew));
+ // emul = lmul * 16 / sew
+ defvar idxEMULOctuple = !srl(!mul(dataEMULOctuple, 16), !logtwo(sew));
if !and(!ge(idxEMULOctuple, 1), !le(idxEMULOctuple, 64)) then {
defvar emulMX = octuple_to_str<idxEMULOctuple>.ret;
defvar emul = !cast<LMULInfo>("V_" # emulMX);
@@ -6879,8 +6879,7 @@ let Predicates = [HasVInstructionsAnyF] in {
//===----------------------------------------------------------------------===//
let Predicates = [HasVInstructions] in {
defm PseudoVRGATHER : VPseudoVGTR_VV_VX_VI<uimm5, "@earlyclobber $rd">;
-defm PseudoVRGATHEREI16 : VPseudoVGTR_VV_EEW<eew=16,
- Constraint="@earlyclobber $rd">;
+defm PseudoVRGATHEREI16 : VPseudoVGTR_EI16_VV<Constraint = "@earlyclobber $rd">;
//===----------------------------------------------------------------------===//
// 16.5. Vector Compress Instruction
More information about the llvm-commits
mailing list