Home
last modified time | relevance | path

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

/external/llvm/lib/Target/AMDGPU/
DSIFoldOperands.cpp161 unsigned CommuteIdx1 = TargetInstrInfo::CommuteAnyOperandIndex; in tryAddToFoldList() local
162 bool CanCommute = TII->findCommutedOpIndices(*MI, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
166 OpNo = CommuteIdx1; in tryAddToFoldList()
167 else if (CommuteIdx1 == OpNo) in tryAddToFoldList()
176 !MI->getOperand(CommuteIdx1).isReg())) in tryAddToFoldList()
180 !TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1)) in tryAddToFoldList()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIFoldOperands.cpp375 unsigned CommuteIdx1 = TargetInstrInfo::CommuteAnyOperandIndex; in tryAddToFoldList() local
376 bool CanCommute = TII->findCommutedOpIndices(*MI, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
380 CommuteOpNo = CommuteIdx1; in tryAddToFoldList()
381 else if (CommuteIdx1 == OpNo) in tryAddToFoldList()
391 !MI->getOperand(CommuteIdx1).isReg())) in tryAddToFoldList()
395 !TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1)) in tryAddToFoldList()
407 unsigned OtherIdx = CommuteOpNo == CommuteIdx0 ? CommuteIdx1 : CommuteIdx0; in tryAddToFoldList()
423 TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
DAMDGPUISelDAGToDAG.cpp2671 unsigned CommuteIdx1 = TargetInstrInfo::CommuteAnyOperandIndex; in isVGPRImm() local
2672 if (SII->findCommutedOpIndices(Desc, OpIdx, CommuteIdx1)) { in isVGPRImm()
2673 unsigned CommutedOpNo = CommuteIdx1 - Desc.getNumDefs(); in isVGPRImm()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DSIFoldOperands.cpp382 unsigned CommuteIdx1 = TargetInstrInfo::CommuteAnyOperandIndex; in tryAddToFoldList() local
383 bool CanCommute = TII->findCommutedOpIndices(*MI, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
387 CommuteOpNo = CommuteIdx1; in tryAddToFoldList()
388 else if (CommuteIdx1 == OpNo) in tryAddToFoldList()
398 !MI->getOperand(CommuteIdx1).isReg())) in tryAddToFoldList()
402 !TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1)) in tryAddToFoldList()
414 unsigned OtherIdx = CommuteOpNo == CommuteIdx0 ? CommuteIdx1 : CommuteIdx0; in tryAddToFoldList()
430 TII->commuteInstruction(*MI, false, CommuteIdx0, CommuteIdx1); in tryAddToFoldList()
DAMDGPUISelDAGToDAG.cpp2938 unsigned CommuteIdx1 = TargetInstrInfo::CommuteAnyOperandIndex; in isVGPRImm() local
2939 if (SII->findCommutedOpIndices(Desc, OpIdx, CommuteIdx1)) { in isVGPRImm()
2940 unsigned CommutedOpNo = CommuteIdx1 - Desc.getNumDefs(); in isVGPRImm()