================
@@ -47,15 +49,17 @@ int LVLGen::getVLIndex(unsigned Opcode) {
// returns a register holding a vector length. NoRegister is returned when
// this MI does not have a vector length.
-unsigned LVLGen::getVL(const MachineInstr &MI) {
- int Index = getVLIndex(MI.getOpcode());
+static unsigned getVL(const MachineInstr &MI, const TargetInstrInfo *TII) {
+ int Index = getVLIndex(MI.getOpcode(), TII);
if (Index >= 0)
return MI.getOperand(Index).getReg();
return VE::NoRegister;
}
-bool LVLGen::runOnMachineBasicBlock(MachineBasicBlock &MBB) {
+static bool runLVLGenOnMachineBasicBlock(MachineBasicBlock &MBB,
+ const TargetInstrInfo *TII,
+ const TargetRegisterInfo *TRI) {
----------------
arsenm wrote:
```suggestion
const VEInstrInfo *TII,
const VERegisterInfo *TRI) {
```
https://github.com/llvm/llvm-project/pull/237833
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits