Lines Matching refs:AP

744                          AsmPrinter *AP) {  in emitComments()  argument
800 if (AP->EnablePrintSchedInfo) { in emitComments()
825 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) { in emitKill() argument
833 << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo()); in emitKill()
835 AP.OutStreamer->AddComment(OS.str()); in emitKill()
836 AP.OutStreamer->AddBlankLine(); in emitKill()
842 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugValueComment() argument
904 const TargetFrameLowering *TFI = AP.MF->getSubtarget().getFrameLowering(); in emitDebugValueComment()
905 Offset += TFI->getFrameIndexReference(*AP.MF, in emitDebugValueComment()
913 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
918 OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo()); in emitDebugValueComment()
925 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
932 static bool emitDebugLabelComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugLabelComment() argument
949 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
2268 AsmPrinter &AP,
2272 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
2273 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
2326 AsmPrinter &AP) { in emitGlobalConstantDataSequential() argument
2333 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
2338 return AP.OutStreamer->EmitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2344 if (AP.isVerbose()) in emitGlobalConstantDataSequential()
2345 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantDataSequential()
2347 AP.OutStreamer->EmitIntValue(CDS->getElementAsInteger(i), in emitGlobalConstantDataSequential()
2353 emitGlobalConstantFP(CDS->getElementAsAPFloat(I), ET, AP); in emitGlobalConstantDataSequential()
2361 AP.OutStreamer->EmitZeros(Padding); in emitGlobalConstantDataSequential()
2365 const ConstantArray *CA, AsmPrinter &AP, in emitGlobalConstantArray() argument
2373 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
2377 emitGlobalConstantImpl(DL, CA->getOperand(i), AP, BaseCV, Offset); in emitGlobalConstantArray()
2384 const ConstantVector *CV, AsmPrinter &AP) { in emitGlobalConstantVector() argument
2386 emitGlobalConstantImpl(DL, CV->getOperand(i), AP); in emitGlobalConstantVector()
2392 AP.OutStreamer->EmitZeros(Padding); in emitGlobalConstantVector()
2396 const ConstantStruct *CS, AsmPrinter &AP, in emitGlobalConstantStruct() argument
2406 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar); in emitGlobalConstantStruct()
2417 AP.OutStreamer->EmitZeros(PadSize); in emitGlobalConstantStruct()
2423 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
2428 if (AP.isVerbose()) { in emitGlobalConstantFP()
2433 ET->print(AP.OutStreamer->GetCommentOS()); in emitGlobalConstantFP()
2435 AP.OutStreamer->GetCommentOS() << "Printing <null> Type"; in emitGlobalConstantFP()
2436 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
2448 if (AP.getDataLayout().isBigEndian() && !ET->isPPC_FP128Ty()) { in emitGlobalConstantFP()
2452 AP.OutStreamer->EmitIntValue(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
2455 AP.OutStreamer->EmitIntValue(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2459 AP.OutStreamer->EmitIntValue(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2462 AP.OutStreamer->EmitIntValue(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
2466 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantFP()
2467 AP.OutStreamer->EmitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
2470 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument
2471 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP); in emitGlobalConstantFP()
2474 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) { in emitGlobalConstantLargeInt() argument
2475 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantLargeInt()
2514 AP.OutStreamer->EmitIntValue(Val, 8); in emitGlobalConstantLargeInt()
2521 uint64_t Size = AP.getDataLayout().getTypeAllocSize(CI->getType()); in emitGlobalConstantLargeInt()
2526 AP.OutStreamer->EmitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
2533 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME, in handleIndirectSymViaGOTPCRel() argument
2565 if (!AP.GlobalGOTEquivs.count(GOTEquivSym)) in handleIndirectSymViaGOTPCRel()
2573 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
2589 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0) in handleIndirectSymViaGOTPCRel()
2607 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym]; in handleIndirectSymViaGOTPCRel()
2611 const MCSymbol *FinalSym = AP.getSymbol(FinalGV); in handleIndirectSymViaGOTPCRel()
2612 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel( in handleIndirectSymViaGOTPCRel()
2613 FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
2618 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses); in handleIndirectSymViaGOTPCRel()
2622 AsmPrinter &AP, const Constant *BaseCV, in emitGlobalConstantImpl() argument
2633 return AP.OutStreamer->EmitZeros(Size); in emitGlobalConstantImpl()
2641 if (AP.isVerbose()) in emitGlobalConstantImpl()
2642 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantImpl()
2644 AP.OutStreamer->EmitIntValue(CI->getZExtValue(), Size); in emitGlobalConstantImpl()
2647 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantImpl()
2653 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
2656 AP.OutStreamer->EmitIntValue(0, Size); in emitGlobalConstantImpl()
2661 return emitGlobalConstantDataSequential(DL, CDS, AP); in emitGlobalConstantImpl()
2664 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset); in emitGlobalConstantImpl()
2667 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset); in emitGlobalConstantImpl()
2673 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP); in emitGlobalConstantImpl()
2681 return emitGlobalConstantImpl(DL, New, AP); in emitGlobalConstantImpl()
2686 return emitGlobalConstantVector(DL, V, AP); in emitGlobalConstantImpl()
2690 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
2695 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel()) in emitGlobalConstantImpl()
2696 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset); in emitGlobalConstantImpl()
2698 AP.OutStreamer->EmitValue(ME, Size); in emitGlobalConstantImpl()
2822 const AsmPrinter &AP) { in emitBasicBlockLoopComments() argument
2833 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
2834 Twine(AP.getFunctionNumber())+"_" + in emitBasicBlockLoopComments()
2842 raw_ostream &OS = AP.OutStreamer->GetCommentOS(); in emitBasicBlockLoopComments()
2844 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber()); in emitBasicBlockLoopComments()
2854 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber()); in emitBasicBlockLoopComments()