Home
last modified time | relevance | path

Searched refs:CommutedMI (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DTargetInstrInfo.cpp216 MachineInstr *CommutedMI = nullptr; in commuteInstructionImpl() local
220 CommutedMI = MF.CloneMachineInstr(&MI); in commuteInstructionImpl()
222 CommutedMI = &MI; in commuteInstructionImpl()
226 CommutedMI->getOperand(0).setReg(Reg0); in commuteInstructionImpl()
227 CommutedMI->getOperand(0).setSubReg(SubReg0); in commuteInstructionImpl()
229 CommutedMI->getOperand(Idx2).setReg(Reg1); in commuteInstructionImpl()
230 CommutedMI->getOperand(Idx1).setReg(Reg2); in commuteInstructionImpl()
231 CommutedMI->getOperand(Idx2).setSubReg(SubReg1); in commuteInstructionImpl()
232 CommutedMI->getOperand(Idx1).setSubReg(SubReg2); in commuteInstructionImpl()
233 CommutedMI->getOperand(Idx2).setIsKill(Reg1IsKill); in commuteInstructionImpl()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DThumb2SizeReduction.cpp772 MachineInstr *CommutedMI = TII->commuteInstruction(*MI); in ReduceTo2Addr() local
773 if (!CommutedMI) in ReduceTo2Addr()
783 MachineInstr *CommutedMI = in ReduceTo2Addr() local
785 if (!CommutedMI) in ReduceTo2Addr()
H A DARMBaseInstrInfo.cpp2278 MachineInstr *CommutedMI = in commuteInstructionImpl() local
2280 if (!CommutedMI) in commuteInstructionImpl()
2283 CommutedMI->getOperand(CommutedMI->findFirstPredOperandIdx()) in commuteInstructionImpl()
2285 return CommutedMI; in commuteInstructionImpl()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIInstrInfo.cpp2302 MachineInstr *CommutedMI = nullptr; in commuteInstructionImpl() local
2306 CommutedMI in commuteInstructionImpl()
2313 CommutedMI = swapRegAndNonRegOperand(MI, Src0, Src1); in commuteInstructionImpl()
2316 CommutedMI = swapRegAndNonRegOperand(MI, Src1, Src0); in commuteInstructionImpl()
2322 if (CommutedMI) { in commuteInstructionImpl()
2326 CommutedMI->setDesc(get(CommutedOpcode)); in commuteInstructionImpl()
2329 return CommutedMI; in commuteInstructionImpl()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstrInfo.cpp6186 MachineInstr *CommutedMI = in foldMemoryOperandImpl() local
6188 if (!CommutedMI) { in foldMemoryOperandImpl()
6192 if (CommutedMI != &MI) { in foldMemoryOperandImpl()
6194 CommutedMI->eraseFromParent(); in foldMemoryOperandImpl()