Lines Matching refs:Opc

139   unsigned Opc = UseMI.getOpcode();  in isInlineConstantIfFolded()  local
140 switch (Opc) { in isInlineConstantIfFolded()
146 int Src2Idx = AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src2); in isInlineConstantIfFolded()
148 bool IsFMA = Opc == AMDGPU::V_FMAC_F32_e64; in isInlineConstantIfFolded()
149 bool IsF32 = Opc == AMDGPU::V_MAC_F32_e64; in isInlineConstantIfFolded()
151 unsigned Opc = IsFMA ? in isInlineConstantIfFolded() local
153 const MCInstrDesc &MadDesc = TII->get(Opc); in isInlineConstantIfFolded()
288 unsigned Opc = MI->getOpcode(); in tryAddToFoldList() local
289 if ((Opc == AMDGPU::V_MAC_F32_e64 || Opc == AMDGPU::V_MAC_F16_e64 || in tryAddToFoldList()
290 Opc == AMDGPU::V_FMAC_F32_e64) && in tryAddToFoldList()
291 (int)OpNo == AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src2)) { in tryAddToFoldList()
292 bool IsFMA = Opc == AMDGPU::V_FMAC_F32_e64; in tryAddToFoldList()
293 bool IsF32 = Opc == AMDGPU::V_MAC_F32_e64; in tryAddToFoldList()
305 MI->setDesc(TII->get(Opc)); in tryAddToFoldList()
309 if (Opc == AMDGPU::S_SETREG_B32 && OpToFold->isImm()) { in tryAddToFoldList()
350 if ((Opc == AMDGPU::V_ADD_I32_e64 || in tryAddToFoldList()
351 Opc == AMDGPU::V_SUB_I32_e64 || in tryAddToFoldList()
352 Opc == AMDGPU::V_SUBREV_I32_e64) && // FIXME in tryAddToFoldList()
656 unsigned Opc = MI->getOpcode(); in tryConstantFoldOp() local
657 if (Opc == AMDGPU::V_NOT_B32_e64 || Opc == AMDGPU::V_NOT_B32_e32 || in tryConstantFoldOp()
658 Opc == AMDGPU::S_NOT_B32) { in tryConstantFoldOp()
660 mutateCopyOp(*MI, TII->get(getMovOpc(Opc == AMDGPU::S_NOT_B32))); in tryConstantFoldOp()
664 int Src1Idx = AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src1); in tryConstantFoldOp()
668 int Src0Idx = AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src0); in tryConstantFoldOp()
693 if (!evalBinaryInstruction(Opc, NewImm, Src0->getImm(), Src1->getImm())) in tryConstantFoldOp()
716 if (Opc == AMDGPU::V_OR_B32_e64 || in tryConstantFoldOp()
717 Opc == AMDGPU::V_OR_B32_e32 || in tryConstantFoldOp()
718 Opc == AMDGPU::S_OR_B32) { in tryConstantFoldOp()
726 mutateCopyOp(*MI, TII->get(getMovOpc(Opc == AMDGPU::S_OR_B32))); in tryConstantFoldOp()
739 mutateCopyOp(*MI, TII->get(getMovOpc(Opc == AMDGPU::S_AND_B32))); in tryConstantFoldOp()
768 unsigned Opc = MI->getOpcode(); in tryFoldInst() local
770 if (Opc == AMDGPU::V_CNDMASK_B32_e32 || in tryFoldInst()
771 Opc == AMDGPU::V_CNDMASK_B32_e64 || in tryFoldInst()
772 Opc == AMDGPU::V_CNDMASK_B64_PSEUDO) { in tryFoldInst()
777 int Src2Idx = AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src2); in tryFoldInst()
780 MI->RemoveOperand(AMDGPU::getNamedOperandIdx(Opc, AMDGPU::OpName::src1)); in tryFoldInst()
987 static int getOModValue(unsigned Opc, int64_t Val) { in getOModValue() argument
988 switch (Opc) { in getOModValue()