Lines Matching refs:AP

916 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {  in emitKill()  argument
924 << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo()); in emitKill()
926 AP.OutStreamer->AddComment(OS.str()); in emitKill()
927 AP.OutStreamer->AddBlankLine(); in emitKill()
933 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugValueComment() argument
995 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1006 AP.MF->getSubtarget().getFrameLowering(); in emitDebugValueComment()
1007 Offset = TFI->getFrameIndexReference(*AP.MF, Op.getIndex(), Reg); in emitDebugValueComment()
1019 OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo()); in emitDebugValueComment()
1030 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1037 static bool emitDebugLabelComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugLabelComment() argument
1055 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
2641 AsmPrinter &AP,
2645 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
2646 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
2699 AsmPrinter &AP) { in emitGlobalConstantDataSequential() argument
2706 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
2711 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2717 if (AP.isVerbose()) in emitGlobalConstantDataSequential()
2718 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantDataSequential()
2720 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(i), in emitGlobalConstantDataSequential()
2726 emitGlobalConstantFP(CDS->getElementAsAPFloat(I), ET, AP); in emitGlobalConstantDataSequential()
2734 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
2738 const ConstantArray *CA, AsmPrinter &AP, in emitGlobalConstantArray() argument
2746 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
2750 emitGlobalConstantImpl(DL, CA->getOperand(i), AP, BaseCV, Offset); in emitGlobalConstantArray()
2757 const ConstantVector *CV, AsmPrinter &AP) { in emitGlobalConstantVector() argument
2759 emitGlobalConstantImpl(DL, CV->getOperand(i), AP); in emitGlobalConstantVector()
2765 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
2769 const ConstantStruct *CS, AsmPrinter &AP, in emitGlobalConstantStruct() argument
2779 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar); in emitGlobalConstantStruct()
2790 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
2796 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
2802 if (AP.isVerbose()) { in emitGlobalConstantFP()
2805 ET->print(AP.OutStreamer->GetCommentOS()); in emitGlobalConstantFP()
2806 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
2818 if (AP.getDataLayout().isBigEndian() && !ET->isPPC_FP128Ty()) { in emitGlobalConstantFP()
2822 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
2825 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2829 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2832 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
2836 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantFP()
2837 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
2840 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument
2841 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP); in emitGlobalConstantFP()
2844 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) { in emitGlobalConstantLargeInt() argument
2845 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantLargeInt()
2885 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
2892 uint64_t Size = AP.getDataLayout().getTypeStoreSize(CI->getType()); in emitGlobalConstantLargeInt()
2897 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
2904 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME, in handleIndirectSymViaGOTPCRel() argument
2936 if (!AP.GlobalGOTEquivs.count(GOTEquivSym)) in handleIndirectSymViaGOTPCRel()
2944 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
2960 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0) in handleIndirectSymViaGOTPCRel()
2978 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym]; in handleIndirectSymViaGOTPCRel()
2982 const MCSymbol *FinalSym = AP.getSymbol(FinalGV); in handleIndirectSymViaGOTPCRel()
2983 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel( in handleIndirectSymViaGOTPCRel()
2984 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
2989 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses); in handleIndirectSymViaGOTPCRel()
2993 AsmPrinter &AP, const Constant *BaseCV, in emitGlobalConstantImpl() argument
3004 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
3010 if (AP.isVerbose()) in emitGlobalConstantImpl()
3011 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantImpl()
3013 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3015 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantImpl()
3020 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
3026 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
3029 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
3034 return emitGlobalConstantDataSequential(DL, CDS, AP); in emitGlobalConstantImpl()
3037 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset); in emitGlobalConstantImpl()
3040 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset); in emitGlobalConstantImpl()
3046 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP); in emitGlobalConstantImpl()
3054 return emitGlobalConstantImpl(DL, New, AP); in emitGlobalConstantImpl()
3059 return emitGlobalConstantVector(DL, V, AP); in emitGlobalConstantImpl()
3063 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3068 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel()) in emitGlobalConstantImpl()
3069 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset); in emitGlobalConstantImpl()
3071 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
3202 const AsmPrinter &AP) { in emitBasicBlockLoopComments() argument
3213 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3214 Twine(AP.getFunctionNumber())+"_" + in emitBasicBlockLoopComments()
3222 raw_ostream &OS = AP.OutStreamer->GetCommentOS(); in emitBasicBlockLoopComments()
3224 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber()); in emitBasicBlockLoopComments()
3234 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber()); in emitBasicBlockLoopComments()