Lines Matching defs:MatchInfo

200                                              MachineInstr *&MatchInfo) const {
202 MatchInfo = MRI.getVRegDef(Src);
212 if (fnegFoldsIntoMI(*MatchInfo) &&
214 !allUsesHaveSourceMods(*MatchInfo, MRI)))
218 switch (MatchInfo->getOpcode()) {
228 return !isConstantCostlierToNegate(*MatchInfo,
229 MatchInfo->getOperand(2).getReg(), MRI);
234 return mayIgnoreSignedZero(*MatchInfo);
249 Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID();
258 return mayIgnoreSignedZero(*MatchInfo);
269 MachineInstr *&MatchInfo) const {
305 Builder.setInstrAndDebugLoc(*MatchInfo);
307 // Negate appropriate operands so that resulting value of MatchInfo is
309 switch (MatchInfo->getOpcode()) {
312 NegateOperand(MatchInfo->getOperand(1));
313 NegateOperand(MatchInfo->getOperand(2));
316 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2));
326 NegateOperand(MatchInfo->getOperand(1));
327 NegateOperand(MatchInfo->getOperand(2));
328 unsigned Opposite = inverseMinMax(MatchInfo->getOpcode());
329 replaceOpcodeWith(*MatchInfo, Opposite);
334 NegateEitherOperand(MatchInfo->getOperand(1), MatchInfo->getOperand(2));
335 NegateOperand(MatchInfo->getOperand(3));
347 NegateOperand(MatchInfo->getOperand(1));
351 Intrinsic::ID IntrinsicID = cast<GIntrinsic>(MatchInfo)->getIntrinsicID();
356 NegateOperand(MatchInfo->getOperand(2));
359 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3));
362 NegateOperand(MatchInfo->getOperand(2));
363 NegateOperand(MatchInfo->getOperand(3));
364 NegateOperand(MatchInfo->getOperand(4));
367 NegateEitherOperand(MatchInfo->getOperand(2), MatchInfo->getOperand(3));
368 NegateOperand(MatchInfo->getOperand(4));
380 Register MatchInfoDst = MatchInfo->getOperand(0).getReg();
383 // MatchInfo now has negated value so use that instead of old Dst.
391 replaceRegOpWith(MRI, MatchInfo->getOperand(0), NegatedMatchInfo);
393 // MatchInfo now has negated value so use that instead of old Dst.
397 auto NextInst = ++MatchInfo->getIterator();
458 std::function<void(MachineIRBuilder &)> &MatchInfo) const {
500 MatchInfo = [=, &MI](MachineIRBuilder &Builder) {