Lines Matching refs:MachineOperand

34     MachineOperand *OpToFold;
40 MachineOperand::MachineOperandType Kind;
43 FoldCandidate(MachineInstr *MI, unsigned OpNo, MachineOperand *FoldOp, in FoldCandidate()
60 return Kind == MachineOperand::MO_FrameIndex; in isFI()
64 return Kind == MachineOperand::MO_Immediate; in isImm()
68 return Kind == MachineOperand::MO_Register; in isReg()
92 void foldOperand(MachineOperand &OpToFold,
98 void foldInstOperand(MachineInstr &MI, MachineOperand &OpToFold) const;
100 const MachineOperand *isClamp(const MachineInstr &MI) const;
103 std::pair<const MachineOperand *, int> isOMod(const MachineInstr &MI) const;
135 const MachineOperand &OpToFold) { in isInlineConstantIfFolded()
171 MachineOperand &Old = MI->getOperand(Fold.UseOpNo); in updateOperand()
189 MachineOperand &Mod = MI->getOperand(ModIdx); in updateOperand()
214 MachineOperand &Dst0 = MI->getOperand(0); in updateOperand()
215 MachineOperand &Dst1 = MI->getOperand(1); in updateOperand()
258 MachineOperand *New = Fold.OpToFold; in updateOperand()
283 MachineOperand *OpToFold, in tryAddToFoldList()
359 MachineOperand &OtherOp = MI->getOperand(OtherIdx); in tryAddToFoldList()
391 const MachineOperand &UseMO) { in isUseSafeToFold()
397 MachineOperand &OpToFold, in foldOperand()
402 const MachineOperand &UseOp = UseMI->getOperand(UseOpIdx); in foldOperand()
547 MachineOperand ImmOp = MachineOperand::CreateImm(Imm.getSExtValue()); in foldOperand()
630 static MachineOperand *getImmOrMaterializedImm(MachineRegisterInfo &MRI, in getImmOrMaterializedImm()
631 MachineOperand &Op) { in getImmOrMaterializedImm()
640 MachineOperand &ImmSrc = Def->getOperand(1); in getImmOrMaterializedImm()
655 MachineOperand *ImmOp) { in tryConstantFoldOp()
669 MachineOperand *Src0 = getImmOrMaterializedImm(MRI, MI->getOperand(Src0Idx)); in tryConstantFoldOp()
670 MachineOperand *Src1 = getImmOrMaterializedImm(MRI, MI->getOperand(Src1Idx)); in tryConstantFoldOp()
773 const MachineOperand *Src0 = TII->getNamedOperand(*MI, AMDGPU::OpName::src0); in tryFoldInst()
774 const MachineOperand *Src1 = TII->getNamedOperand(*MI, AMDGPU::OpName::src1); in tryFoldInst()
792 MachineOperand &OpToFold) const { in foldInstOperand()
798 MachineOperand &Dst = MI.getOperand(0); in foldInstOperand()
803 MachineOperand *NonInlineUse = nullptr; in foldInstOperand()
908 const MachineOperand *SIFoldOperands::isClamp(const MachineInstr &MI) const { in isClamp()
919 const MachineOperand *Src0 = TII->getNamedOperand(MI, AMDGPU::OpName::src0); in isClamp()
920 const MachineOperand *Src1 = TII->getNamedOperand(MI, AMDGPU::OpName::src1); in isClamp()
963 const MachineOperand *ClampSrc = isClamp(MI); in tryFoldClamp()
973 MachineOperand *DefClamp = TII->getNamedOperand(*Def, AMDGPU::OpName::clamp); in tryFoldClamp()
1021 std::pair<const MachineOperand *, int>
1032 const MachineOperand *RegOp = nullptr; in isOMod()
1033 const MachineOperand *ImmOp = nullptr; in isOMod()
1034 const MachineOperand *Src0 = TII->getNamedOperand(MI, AMDGPU::OpName::src0); in isOMod()
1035 const MachineOperand *Src1 = TII->getNamedOperand(MI, AMDGPU::OpName::src1); in isOMod()
1063 const MachineOperand *Src0 = TII->getNamedOperand(MI, AMDGPU::OpName::src0); in isOMod()
1064 const MachineOperand *Src1 = TII->getNamedOperand(MI, AMDGPU::OpName::src1); in isOMod()
1083 const MachineOperand *RegOp; in tryFoldOMod()
1092 MachineOperand *DefOMod = TII->getNamedOperand(*Def, AMDGPU::OpName::omod); in tryFoldOMod()
1143 MachineOperand &OpToFold = MI.getOperand(1); in runOnMachineFunction()
1160 MachineOperand &Dst = MI.getOperand(0); in runOnMachineFunction()