Home
last modified time | relevance | path

Searched refs:UseOpIdx (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp96 unsigned UseOpIdx,
100 int UseOpIdx,
690 const MachineOperand &OpToFold, MachineInstr *UseMI, unsigned UseOpIdx, in tryToFoldACImm() argument
693 if (UseOpIdx >= Desc.getNumOperands()) in tryToFoldACImm()
696 if (!AMDGPU::isSISrcInlinableOperand(Desc, UseOpIdx)) in tryToFoldACImm()
699 uint8_t OpTy = Desc.operands()[UseOpIdx].OperandType; in tryToFoldACImm()
701 TII->isOperandLegal(*UseMI, UseOpIdx, &OpToFold)) { in tryToFoldACImm()
702 UseMI->getOperand(UseOpIdx).ChangeToImmediate(OpToFold.getImm()); in tryToFoldACImm()
718 MachineOperand &UseOp = UseMI->getOperand(UseOpIdx); in tryToFoldACImm()
722 TII->isOperandLegal(*UseMI, UseOpIdx, &DefOp)) { in tryToFoldACImm()
[all …]
H A DAMDGPUSubtarget.cpp868 SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx, SDep &Dep, in adjustSchedDependency() argument
908 DefI, DefOpIdx, UseI, UseOpIdx)); in adjustSchedDependency()
H A DGCNSubtarget.h1569 void adjustSchedDependency(SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx,
H A DSIInstrInfo.cpp5087 unsigned UseOpIdx; in verifyInstruction() local
5088 if (!MI.isRegTiedToUseOperand(StaticNumOps, &UseOpIdx) || in verifyInstruction()
5089 UseOpIdx != StaticNumOps + 1) { in verifyInstruction()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DInitUndef.cpp223 unsigned UseOpIdx; in processBasicBlock() local
224 if (MI.getNumDefs() != 0 && MI.isRegTiedToUseOperand(0, &UseOpIdx)) { in processBasicBlock()
225 MachineOperand &UseMO = MI.getOperand(UseOpIdx); in processBasicBlock()
228 TII->getRegClass(MI.getDesc(), UseOpIdx, TRI, MF); in processBasicBlock()
H A DScheduleDAGInstrs.cpp261 int UseOpIdx = I->OpIdx; in addPhysRegDataDeps() local
264 if (UseOpIdx < 0) { in addPhysRegDataDeps()
272 Register UseReg = UseInstr->getOperand(UseOpIdx).getReg(); in addPhysRegDataDeps()
274 ImplicitPseudoUse = UseOpIdx >= ((int)UseMIDesc.getNumOperands()) && in addPhysRegDataDeps()
281 UseInstr, UseOpIdx)); in addPhysRegDataDeps()
285 ST.adjustSchedDependency(SU, OperIdx, UseSU, UseOpIdx, Dep, &SchedModel); in addPhysRegDataDeps()
H A DMachineVerifier.cpp2319 unsigned UseOpIdx; in visitMachineInstrBefore() local
2320 if (!MI->isRegTiedToUseOperand(Idx, &UseOpIdx)) { in visitMachineInstrBefore()
2324 if (UseOpIdx < FirstGCPtrIdx || UseOpIdx > LastGCPtrIdx) { in visitMachineInstrBefore()
H A DRegisterCoalescer.cpp854 unsigned UseOpIdx; in removeCopyByCommutingDef() local
855 if (!DefMI->isRegTiedToUseOperand(DefIdx, &UseOpIdx)) in removeCopyByCommutingDef()
868 if (!TII->findCommutedOpIndices(*DefMI, UseOpIdx, NewDstIdx)) in removeCopyByCommutingDef()
902 TII->commuteInstruction(*DefMI, false, UseOpIdx, NewDstIdx); in removeCopyByCommutingDef()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Subtarget.cpp483 SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx, SDep &Dep, in adjustSchedDependency() argument
507 Register Reg = UseMI->getOperand(UseOpIdx).getReg(); in adjustSchedDependency()
511 UseOpIdx = Op.getOperandNo(); in adjustSchedDependency()
518 SchedModel->computeOperandLatency(DefMI, DefOpIdx, UseMI, UseOpIdx)); in adjustSchedDependency()
H A DAArch64Subtarget.h317 void adjustSchedDependency(SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx,
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineInstr.h1653 unsigned *UseOpIdx = nullptr) const {
1657 if (UseOpIdx)
1658 *UseOpIdx = findTiedOperandIdx(DefOpIdx);
1665 bool isRegTiedToDefOperand(unsigned UseOpIdx,
1667 const MachineOperand &MO = getOperand(UseOpIdx);
1671 *DefOpIdx = findTiedOperandIdx(UseOpIdx);
H A DTargetSubtargetInfo.h241 int UseOpIdx, SDep &Dep, in adjustSchedDependency() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonSubtarget.h310 void adjustSchedDependency(SUnit *Def, int DefOpIdx, SUnit *Use, int UseOpIdx,
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInsertVSETVLI.cpp187 unsigned UseOpIdx; in hasUndefinedMergeOp() local
188 if (!MI.isRegTiedToUseOperand(0, &UseOpIdx)) in hasUndefinedMergeOp()
195 const MachineOperand &UseMO = MI.getOperand(UseOpIdx); in hasUndefinedMergeOp()
H A DRISCVInstrInfo.cpp2532 unsigned UseOpIdx; in verifyInstruction() local
2533 if (!MI.isRegTiedToUseOperand(0, &UseOpIdx)) { in verifyInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.cpp638 int UseOpIdx = in optimizeLoadInstr() local
640 assert(UseOpIdx != -1 && "Expected FoldAsLoadDefReg to be used by MI."); in optimizeLoadInstr()
644 foldMemoryOperand(MI, {((unsigned)UseOpIdx)}, *DefMI)) { in optimizeLoadInstr()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp3297 int UseOpIdx = MI.findRegisterUseOperandIdx(InUseReg, TRI, false); in replaceInstrOperandWithImm() local
3298 if (UseOpIdx >= 0) { in replaceInstrOperandWithImm()
3299 MachineOperand &MO = MI.getOperand(UseOpIdx); in replaceInstrOperandWithImm()
3308 MI.removeOperand(UseOpIdx); in replaceInstrOperandWithImm()