reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Target/AMDGPU/SIFoldOperands.cpp
  969   unsigned Opc = MI->getOpcode();
  972     MI->getOperand(1).ChangeToImmediate(~ImmOp->getImm());
  973     mutateCopyOp(*MI, TII->get(getMovOpc(Opc == AMDGPU::S_NOT_B32)));
  982   MachineOperand *Src0 = getImmOrMaterializedImm(MRI, MI->getOperand(Src0Idx));
  983   MachineOperand *Src1 = getImmOrMaterializedImm(MRI, MI->getOperand(Src1Idx));
  988   if (MI->getOpcode() == AMDGPU::V_LSHL_OR_B32) {
  992       bool UseCopy = TII->getNamedOperand(*MI, AMDGPU::OpName::src2)->isReg();
  993       MI->RemoveOperand(Src1Idx);
  994       MI->RemoveOperand(Src0Idx);
  996       MI->setDesc(TII->get(UseCopy ? AMDGPU::COPY : AMDGPU::V_MOV_B32_e32));
 1010     bool IsSGPR = TRI.isSGPRReg(MRI, MI->getOperand(0).getReg());
 1014     MI->getOperand(Src0Idx).ChangeToImmediate(NewImm);
 1015     MI->RemoveOperand(Src1Idx);
 1016     mutateCopyOp(*MI, TII->get(getMovOpc(IsSGPR)));
 1020   if (!MI->isCommutable())
 1034       MI->RemoveOperand(Src1Idx);
 1035       mutateCopyOp(*MI, TII->get(AMDGPU::COPY));
 1038       MI->RemoveOperand(Src1Idx);
 1039       mutateCopyOp(*MI, TII->get(getMovOpc(Opc == AMDGPU::S_OR_B32)));
 1046   if (MI->getOpcode() == AMDGPU::V_AND_B32_e64 ||
 1047       MI->getOpcode() == AMDGPU::V_AND_B32_e32 ||
 1048       MI->getOpcode() == AMDGPU::S_AND_B32) {
 1051       MI->RemoveOperand(Src0Idx);
 1052       mutateCopyOp(*MI, TII->get(getMovOpc(Opc == AMDGPU::S_AND_B32)));
 1055       MI->RemoveOperand(Src1Idx);
 1056       mutateCopyOp(*MI, TII->get(AMDGPU::COPY));
 1057       stripExtraCopyOperands(*MI);
 1064   if (MI->getOpcode() == AMDGPU::V_XOR_B32_e64 ||
 1065       MI->getOpcode() == AMDGPU::V_XOR_B32_e32 ||
 1066       MI->getOpcode() == AMDGPU::S_XOR_B32) {
 1069       MI->RemoveOperand(Src1Idx);
 1070       mutateCopyOp(*MI, TII->get(AMDGPU::COPY));