Lines Matching refs:MatchInfo
193 MachineInstr *&MatchInfo) { in matchFoldableFneg() argument
195 MatchInfo = MRI.getVRegDef(Src); in matchFoldableFneg()
205 if (fnegFoldsIntoMI(*MatchInfo) && in matchFoldableFneg()
207 !allUsesHaveSourceMods(*MatchInfo, MRI))) in matchFoldableFneg()
211 switch (MatchInfo->getOpcode()) { in matchFoldableFneg()
221 return !isConstantCostlierToNegate(*MatchInfo, in matchFoldableFneg()
222 MatchInfo->getOperand(2).getReg(), MRI); in matchFoldableFneg()
227 return mayIgnoreSignedZero(*MatchInfo); in matchFoldableFneg()
242 Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID(); in matchFoldableFneg()
251 return mayIgnoreSignedZero(*MatchInfo); in matchFoldableFneg()
262 MachineInstr *&MatchInfo) { in applyFoldableFneg() argument
298 Builder.setInstrAndDebugLoc(*MatchInfo); in applyFoldableFneg()
302 switch (MatchInfo->getOpcode()) { in applyFoldableFneg()
305 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
306 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
309 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2)); in applyFoldableFneg()
319 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
320 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
321 unsigned Opposite = inverseMinMax(MatchInfo->getOpcode()); in applyFoldableFneg()
322 replaceOpcodeWith(*MatchInfo, Opposite); in applyFoldableFneg()
327 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2)); in applyFoldableFneg()
328 NegateOperand(MatchInfo->getOperand(3)); in applyFoldableFneg()
340 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
344 Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID(); in applyFoldableFneg()
349 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
352 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3)); in applyFoldableFneg()
355 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
356 NegateOperand(MatchInfo->getOperand(3)); in applyFoldableFneg()
357 NegateOperand(MatchInfo->getOperand(4)); in applyFoldableFneg()
360 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3)); in applyFoldableFneg()
361 NegateOperand(MatchInfo->getOperand(4)); in applyFoldableFneg()
373 Register MatchInfoDst = MatchInfo->getOperand(0).getReg(); in applyFoldableFneg()
384 replaceRegOpWith(MRI, MatchInfo->getOperand(0), NegatedMatchInfo); in applyFoldableFneg()
390 auto NextInst = ++MatchInfo->getIterator(); in applyFoldableFneg()