Home | History | Annotate | Download | only in AsmPrinter

Lines Matching refs:MI

178   GCModuleInfo *MI = getAnalysisIfAvailable<GCModuleInfo>();
179 assert(MI && "AsmPrinter didn't require GCModuleInfo?");
180 for (GCModuleInfo::iterator I = MI->begin(), E = MI->end(); I != E; ++I)
495 static void emitComments(const MachineInstr &MI, raw_ostream &CommentOS) {
496 const MachineFunction *MF = MI.getParent()->getParent();
507 if (TM.getInstrInfo()->isLoadFromStackSlotPostFE(&MI, FI)) {
509 MMO = *MI.memoperands_begin();
512 } else if (TM.getInstrInfo()->hasLoadFromStackSlot(&MI, MMO, FI)) {
515 } else if (TM.getInstrInfo()->isStoreToStackSlotPostFE(&MI, FI)) {
517 MMO = *MI.memoperands_begin();
520 } else if (TM.getInstrInfo()->hasStoreToStackSlot(&MI, MMO, FI)) {
526 if (MI.getAsmPrinterFlag(MachineInstr::ReloadReuse))
532 static void emitImplicitDef(const MachineInstr *MI, AsmPrinter &AP) {
533 unsigned RegNo = MI->getOperand(0).getReg();
539 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {
541 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
542 const MachineOperand &Op = MI->getOperand(i);
554 /// means the target will need to handle MI in EmitInstruction.
555 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
557 if (MI->getNumOperands() != 3)
565 DIVariable V(const_cast<MDNode*>(MI->getOperand(2).getMetadata()));
571 if (MI->getOperand(0).isFPImm()) {
572 APFloat APF = APFloat(MI->getOperand(0).getFPImm()->getValueAPF());
573 if (MI->getOperand(0).getFPImm()->getType()->isFloatTy()) {
575 } else if (MI->getOperand(0).getFPImm()->getType()->isDoubleTy()) {
585 } else if (MI->getOperand(0).isImm()) {
586 OS << MI->getOperand(0).getImm();
587 } else if (MI->getOperand(0).isCImm()) {
588 MI->getOperand(0).getCImm()->getValue().print(OS, false /*isSigned*/);
590 assert(MI->getOperand(0).isReg() && "Unknown operand type");
591 if (MI->getOperand(0).getReg() == 0) {
598 OS << AP.TM.getRegisterInfo()->getName(MI->getOperand(0).getReg());
601 OS << '+' << MI->getOperand(1).getImm();
627 void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
628 MCSymbol *Label = MI.getOperand(0).getMCSymbol();
803 getDebugValueLocation(const MachineInstr *MI) const {
942 GCModuleInfo *MI = getAnalysisIfAvailable<GCModuleInfo>();
943 assert(MI
944 for (GCModuleInfo::iterator I = MI->end(), E = MI->begin(); I != E; )
2173 MachineInstr &MI = *II;
2176 if (!MI.isBranch() || MI.isIndirectBranch())
2181 for (MachineInstr::mop_iterator OI = MI.operands_begin(),
2182 OE = MI.operands_end(); OI != OE; ++OI) {