Lines Matching refs:MatchInfo
185 MachineInstr *&MatchInfo) { in matchFoldableFneg() argument
187 MatchInfo = MRI.getVRegDef(Src); in matchFoldableFneg()
197 if (fnegFoldsIntoMI(*MatchInfo) && in matchFoldableFneg()
199 !allUsesHaveSourceMods(*MatchInfo, MRI))) in matchFoldableFneg()
203 switch (MatchInfo->getOpcode()) { in matchFoldableFneg()
211 return !isConstantCostlierToNegate(*MatchInfo, in matchFoldableFneg()
212 MatchInfo->getOperand(2).getReg(), MRI); in matchFoldableFneg()
217 return mayIgnoreSignedZero(*MatchInfo); in matchFoldableFneg()
231 unsigned IntrinsicID = MatchInfo->getIntrinsicID(); in matchFoldableFneg()
240 return mayIgnoreSignedZero(*MatchInfo); in matchFoldableFneg()
251 MachineInstr *&MatchInfo) { in applyFoldableFneg() argument
287 Builder.setInstrAndDebugLoc(*MatchInfo); in applyFoldableFneg()
291 switch (MatchInfo->getOpcode()) { in applyFoldableFneg()
294 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
295 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
298 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2)); in applyFoldableFneg()
306 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
307 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
308 unsigned Opposite = inverseMinMax(MatchInfo->getOpcode()); in applyFoldableFneg()
309 replaceOpcodeWith(*MatchInfo, Opposite); in applyFoldableFneg()
314 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2)); in applyFoldableFneg()
315 NegateOperand(MatchInfo->getOperand(3)); in applyFoldableFneg()
327 NegateOperand(MatchInfo->getOperand(1)); in applyFoldableFneg()
330 unsigned IntrinsicID = MatchInfo->getIntrinsicID(); in applyFoldableFneg()
335 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
338 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3)); in applyFoldableFneg()
341 NegateOperand(MatchInfo->getOperand(2)); in applyFoldableFneg()
342 NegateOperand(MatchInfo->getOperand(3)); in applyFoldableFneg()
343 NegateOperand(MatchInfo->getOperand(4)); in applyFoldableFneg()
346 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3)); in applyFoldableFneg()
347 NegateOperand(MatchInfo->getOperand(4)); in applyFoldableFneg()
359 Register MatchInfoDst = MatchInfo->getOperand(0).getReg(); in applyFoldableFneg()
370 replaceRegOpWith(MRI, MatchInfo->getOperand(0), NegatedMatchInfo); in applyFoldableFneg()
376 auto NextInst = ++MatchInfo->getIterator(); in applyFoldableFneg()