https://github.com/boomanaiden154 updated 
https://github.com/llvm/llvm-project/pull/237833

>From ea65cefae9db4973058fa33789afb56d69100952 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <[email protected]>
Date: Mon, 2 Nov 2026 05:12:51 +0000
Subject: [PATCH] feedback

Created using spr 1.3.7
---
 llvm/lib/Target/VE/LVLGen.cpp | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/llvm/lib/Target/VE/LVLGen.cpp b/llvm/lib/Target/VE/LVLGen.cpp
index 8459313a05332..2d4c2c385ae12 100644
--- a/llvm/lib/Target/VE/LVLGen.cpp
+++ b/llvm/lib/Target/VE/LVLGen.cpp
@@ -7,6 +7,8 @@
 
//===----------------------------------------------------------------------===//
 
 #include "VE.h"
+#include "VEInstrInfo.h"
+#include "VERegisterInfo.h"
 #include "VESubtarget.h"
 #include "llvm/CodeGen/MachineFunctionAnalysisManager.h"
 #include "llvm/CodeGen/MachineFunctionPass.h"
@@ -37,7 +39,7 @@ char VELVLGenLegacy::ID = 0;
 
 FunctionPass *llvm::createVELVLGenLegacyPass() { return new VELVLGenLegacy; }
 
-static int getVLIndex(unsigned Opcode, const TargetInstrInfo *TII) {
+static int getVLIndex(unsigned Opcode, const VEInstrInfo *TII) {
   const MCInstrDesc &MCID = TII->get(Opcode);
 
   // If an instruction has VLIndex information, return it.
@@ -49,7 +51,7 @@ static int getVLIndex(unsigned Opcode, const TargetInstrInfo 
*TII) {
 
 // returns a register holding a vector length. NoRegister is returned when
 // this MI does not have a vector length.
-static unsigned getVL(const MachineInstr &MI, const TargetInstrInfo *TII) {
+static unsigned getVL(const MachineInstr &MI, const VEInstrInfo *TII) {
   int Index = getVLIndex(MI.getOpcode(), TII);
   if (Index >= 0)
     return MI.getOperand(Index).getReg();
@@ -58,8 +60,8 @@ static unsigned getVL(const MachineInstr &MI, const 
TargetInstrInfo *TII) {
 }
 
 static bool runLVLGenOnMachineBasicBlock(MachineBasicBlock &MBB,
-                                         const TargetInstrInfo *TII,
-                                         const TargetRegisterInfo *TRI) {
+                                         const VEInstrInfo *TII,
+                                         const VERegisterInfo *TRI) {
 #define RegName(no)                                                            
\
   (MBB.getParent()->getSubtarget<VESubtarget>().getRegisterInfo()->getName(no))
 
@@ -124,8 +126,8 @@ static bool runLVLGenOnMachineFunction(MachineFunction &F) {
   bool Changed = false;
 
   const VESubtarget &Subtarget = F.getSubtarget<VESubtarget>();
-  const TargetInstrInfo *TII = Subtarget.getInstrInfo();
-  const TargetRegisterInfo *TRI = Subtarget.getRegisterInfo();
+  const VEInstrInfo *TII = Subtarget.getInstrInfo();
+  const VERegisterInfo *TRI = Subtarget.getRegisterInfo();
 
   for (MachineBasicBlock &MBB : F)
     Changed |= runLVLGenOnMachineBasicBlock(MBB, TII, TRI);

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to