Lines Matching refs:OutMI
52 void Lower(const MachineInstr *MI, MCInst &OutMI) const;
397 void X86MCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const { in Lower()
398 OutMI.setOpcode(MI->getOpcode()); in Lower()
436 OutMI.addOperand(MCOp); in Lower()
441 switch (OutMI.getOpcode()) { in Lower()
447 assert(OutMI.getNumOperands() == 1+X86::AddrNumOperands && in Lower()
449 assert(OutMI.getOperand(1+X86::AddrSegmentReg).getReg() == 0 && in Lower()
454 OutMI.setOpcode(X86::MOV32ri); in Lower()
471 if (!X86II::isX86_64ExtendedReg(OutMI.getOperand(0).getReg()) && in Lower()
472 X86II::isX86_64ExtendedReg(OutMI.getOperand(1).getReg())) { in Lower()
474 switch (OutMI.getOpcode()) { in Lower()
489 OutMI.setOpcode(NewOpc); in Lower()
495 if (!X86II::isX86_64ExtendedReg(OutMI.getOperand(0).getReg()) && in Lower()
496 X86II::isX86_64ExtendedReg(OutMI.getOperand(2).getReg())) { in Lower()
498 switch (OutMI.getOpcode()) { in Lower()
503 OutMI.setOpcode(NewOpc); in Lower()
515 unsigned Opcode = OutMI.getOpcode(); in Lower()
516 MCOperand Saved = OutMI.getOperand(0); in Lower()
517 OutMI = MCInst(); in Lower()
518 OutMI.setOpcode(Opcode); in Lower()
519 OutMI.addOperand(Saved); in Lower()
525 OutMI = MCInst(); in Lower()
526 OutMI.setOpcode(getRetOpcode(AsmPrinter.getSubtarget())); in Lower()
535 switch (OutMI.getOpcode()) { in Lower()
542 MCOperand Saved = OutMI.getOperand(0); in Lower()
543 OutMI = MCInst(); in Lower()
544 OutMI.setOpcode(Opcode); in Lower()
545 OutMI.addOperand(Saved); in Lower()
556 switch (OutMI.getOpcode()) { in Lower()
563 OutMI.setOpcode(Opcode); in Lower()
570 case X86::ADD16rr_DB: OutMI.setOpcode(X86::OR16rr); goto ReSimplify; in Lower()
571 case X86::ADD32rr_DB: OutMI.setOpcode(X86::OR32rr); goto ReSimplify; in Lower()
572 case X86::ADD64rr_DB: OutMI.setOpcode(X86::OR64rr); goto ReSimplify; in Lower()
573 case X86::ADD16ri_DB: OutMI.setOpcode(X86::OR16ri); goto ReSimplify; in Lower()
574 case X86::ADD32ri_DB: OutMI.setOpcode(X86::OR32ri); goto ReSimplify; in Lower()
575 case X86::ADD64ri32_DB: OutMI.setOpcode(X86::OR64ri32); goto ReSimplify; in Lower()
576 case X86::ADD16ri8_DB: OutMI.setOpcode(X86::OR16ri8); goto ReSimplify; in Lower()
577 case X86::ADD32ri8_DB: OutMI.setOpcode(X86::OR32ri8); goto ReSimplify; in Lower()
578 case X86::ADD64ri8_DB: OutMI.setOpcode(X86::OR64ri8); goto ReSimplify; in Lower()
583 case X86::ACQUIRE_MOV8rm: OutMI.setOpcode(X86::MOV8rm); goto ReSimplify; in Lower()
584 case X86::ACQUIRE_MOV16rm: OutMI.setOpcode(X86::MOV16rm); goto ReSimplify; in Lower()
585 case X86::ACQUIRE_MOV32rm: OutMI.setOpcode(X86::MOV32rm); goto ReSimplify; in Lower()
586 case X86::ACQUIRE_MOV64rm: OutMI.setOpcode(X86::MOV64rm); goto ReSimplify; in Lower()
587 case X86::RELEASE_MOV8mr: OutMI.setOpcode(X86::MOV8mr); goto ReSimplify; in Lower()
588 case X86::RELEASE_MOV16mr: OutMI.setOpcode(X86::MOV16mr); goto ReSimplify; in Lower()
589 case X86::RELEASE_MOV32mr: OutMI.setOpcode(X86::MOV32mr); goto ReSimplify; in Lower()
590 case X86::RELEASE_MOV64mr: OutMI.setOpcode(X86::MOV64mr); goto ReSimplify; in Lower()
591 case X86::RELEASE_MOV8mi: OutMI.setOpcode(X86::MOV8mi); goto ReSimplify; in Lower()
592 case X86::RELEASE_MOV16mi: OutMI.setOpcode(X86::MOV16mi); goto ReSimplify; in Lower()
593 case X86::RELEASE_MOV32mi: OutMI.setOpcode(X86::MOV32mi); goto ReSimplify; in Lower()
594 case X86::RELEASE_MOV64mi32: OutMI.setOpcode(X86::MOV64mi32); goto ReSimplify; in Lower()
595 case X86::RELEASE_ADD8mi: OutMI.setOpcode(X86::ADD8mi); goto ReSimplify; in Lower()
596 case X86::RELEASE_ADD32mi: OutMI.setOpcode(X86::ADD32mi); goto ReSimplify; in Lower()
597 case X86::RELEASE_ADD64mi32: OutMI.setOpcode(X86::ADD64mi32); goto ReSimplify; in Lower()
598 case X86::RELEASE_AND8mi: OutMI.setOpcode(X86::AND8mi); goto ReSimplify; in Lower()
599 case X86::RELEASE_AND32mi: OutMI.setOpcode(X86::AND32mi); goto ReSimplify; in Lower()
600 case X86::RELEASE_AND64mi32: OutMI.setOpcode(X86::AND64mi32); goto ReSimplify; in Lower()
601 case X86::RELEASE_OR8mi: OutMI.setOpcode(X86::OR8mi); goto ReSimplify; in Lower()
602 case X86::RELEASE_OR32mi: OutMI.setOpcode(X86::OR32mi); goto ReSimplify; in Lower()
603 case X86::RELEASE_OR64mi32: OutMI.setOpcode(X86::OR64mi32); goto ReSimplify; in Lower()
604 case X86::RELEASE_XOR8mi: OutMI.setOpcode(X86::XOR8mi); goto ReSimplify; in Lower()
605 case X86::RELEASE_XOR32mi: OutMI.setOpcode(X86::XOR32mi); goto ReSimplify; in Lower()
606 case X86::RELEASE_XOR64mi32: OutMI.setOpcode(X86::XOR64mi32); goto ReSimplify; in Lower()
607 case X86::RELEASE_INC8m: OutMI.setOpcode(X86::INC8m); goto ReSimplify; in Lower()
608 case X86::RELEASE_INC16m: OutMI.setOpcode(X86::INC16m); goto ReSimplify; in Lower()
609 case X86::RELEASE_INC32m: OutMI.setOpcode(X86::INC32m); goto ReSimplify; in Lower()
610 case X86::RELEASE_INC64m: OutMI.setOpcode(X86::INC64m); goto ReSimplify; in Lower()
611 case X86::RELEASE_DEC8m: OutMI.setOpcode(X86::DEC8m); goto ReSimplify; in Lower()
612 case X86::RELEASE_DEC16m: OutMI.setOpcode(X86::DEC16m); goto ReSimplify; in Lower()
613 case X86::RELEASE_DEC32m: OutMI.setOpcode(X86::DEC32m); goto ReSimplify; in Lower()
614 case X86::RELEASE_DEC64m: OutMI.setOpcode(X86::DEC64m); goto ReSimplify; in Lower()
624 case X86::MOV8mr: SimplifyShortMoveForm(AsmPrinter, OutMI, X86::MOV8o32a); break; in Lower()
626 case X86::MOV8rm: SimplifyShortMoveForm(AsmPrinter, OutMI, X86::MOV8ao32); break; in Lower()
627 case X86::MOV16mr: SimplifyShortMoveForm(AsmPrinter, OutMI, X86::MOV16o32a); break; in Lower()
628 case X86::MOV16rm: SimplifyShortMoveForm(AsmPrinter, OutMI, X86::MOV16ao32); break; in Lower()
629 case X86::MOV32mr: SimplifyShortMoveForm(AsmPrinter, OutMI, X86::MOV32o32a); break; in Lower()
630 case X86::MOV32rm: SimplifyShortMoveForm(AsmPrinter, OutMI, X86::MOV32ao32); break; in Lower()
632 case X86::ADC8ri: SimplifyShortImmForm(OutMI, X86::ADC8i8); break; in Lower()
633 case X86::ADC16ri: SimplifyShortImmForm(OutMI, X86::ADC16i16); break; in Lower()
634 case X86::ADC32ri: SimplifyShortImmForm(OutMI, X86::ADC32i32); break; in Lower()
635 case X86::ADC64ri32: SimplifyShortImmForm(OutMI, X86::ADC64i32); break; in Lower()
636 case X86::ADD8ri: SimplifyShortImmForm(OutMI, X86::ADD8i8); break; in Lower()
637 case X86::ADD16ri: SimplifyShortImmForm(OutMI, X86::ADD16i16); break; in Lower()
638 case X86::ADD32ri: SimplifyShortImmForm(OutMI, X86::ADD32i32); break; in Lower()
639 case X86::ADD64ri32: SimplifyShortImmForm(OutMI, X86::ADD64i32); break; in Lower()
640 case X86::AND8ri: SimplifyShortImmForm(OutMI, X86::AND8i8); break; in Lower()
641 case X86::AND16ri: SimplifyShortImmForm(OutMI, X86::AND16i16); break; in Lower()
642 case X86::AND32ri: SimplifyShortImmForm(OutMI, X86::AND32i32); break; in Lower()
643 case X86::AND64ri32: SimplifyShortImmForm(OutMI, X86::AND64i32); break; in Lower()
644 case X86::CMP8ri: SimplifyShortImmForm(OutMI, X86::CMP8i8); break; in Lower()
645 case X86::CMP16ri: SimplifyShortImmForm(OutMI, X86::CMP16i16); break; in Lower()
646 case X86::CMP32ri: SimplifyShortImmForm(OutMI, X86::CMP32i32); break; in Lower()
647 case X86::CMP64ri32: SimplifyShortImmForm(OutMI, X86::CMP64i32); break; in Lower()
648 case X86::OR8ri: SimplifyShortImmForm(OutMI, X86::OR8i8); break; in Lower()
649 case X86::OR16ri: SimplifyShortImmForm(OutMI, X86::OR16i16); break; in Lower()
650 case X86::OR32ri: SimplifyShortImmForm(OutMI, X86::OR32i32); break; in Lower()
651 case X86::OR64ri32: SimplifyShortImmForm(OutMI, X86::OR64i32); break; in Lower()
652 case X86::SBB8ri: SimplifyShortImmForm(OutMI, X86::SBB8i8); break; in Lower()
653 case X86::SBB16ri: SimplifyShortImmForm(OutMI, X86::SBB16i16); break; in Lower()
654 case X86::SBB32ri: SimplifyShortImmForm(OutMI, X86::SBB32i32); break; in Lower()
655 case X86::SBB64ri32: SimplifyShortImmForm(OutMI, X86::SBB64i32); break; in Lower()
656 case X86::SUB8ri: SimplifyShortImmForm(OutMI, X86::SUB8i8); break; in Lower()
657 case X86::SUB16ri: SimplifyShortImmForm(OutMI, X86::SUB16i16); break; in Lower()
658 case X86::SUB32ri: SimplifyShortImmForm(OutMI, X86::SUB32i32); break; in Lower()
659 case X86::SUB64ri32: SimplifyShortImmForm(OutMI, X86::SUB64i32); break; in Lower()
660 case X86::TEST8ri: SimplifyShortImmForm(OutMI, X86::TEST8i8); break; in Lower()
661 case X86::TEST16ri: SimplifyShortImmForm(OutMI, X86::TEST16i16); break; in Lower()
662 case X86::TEST32ri: SimplifyShortImmForm(OutMI, X86::TEST32i32); break; in Lower()
663 case X86::TEST64ri32: SimplifyShortImmForm(OutMI, X86::TEST64i32); break; in Lower()
664 case X86::XOR8ri: SimplifyShortImmForm(OutMI, X86::XOR8i8); break; in Lower()
665 case X86::XOR16ri: SimplifyShortImmForm(OutMI, X86::XOR16i16); break; in Lower()
666 case X86::XOR32ri: SimplifyShortImmForm(OutMI, X86::XOR32i32); break; in Lower()
667 case X86::XOR64ri32: SimplifyShortImmForm(OutMI, X86::XOR64i32); break; in Lower()
673 SimplifyMOVSX(OutMI); in Lower()