Lines Matching refs:AP

1122 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {  in emitKill()  argument
1129 << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo()); in emitKill()
1131 AP.OutStreamer->AddComment(Str); in emitKill()
1132 AP.OutStreamer->addBlankLine(); in emitKill()
1138 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugValueComment() argument
1214 AP.MF->getSubtarget().getFrameLowering(); in emitDebugValueComment()
1215 Offset = TFI->getFrameIndexReference(*AP.MF, Op.getIndex(), Reg); in emitDebugValueComment()
1227 OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo()); in emitDebugValueComment()
1238 AP.OutStreamer->emitRawComment(Str); in emitDebugValueComment()
1245 static bool emitDebugLabelComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugLabelComment() argument
1263 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
3294 AsmPrinter &AP,
3299 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
3300 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
3351 static void emitGlobalAliasInline(AsmPrinter &AP, uint64_t Offset, in emitGlobalAliasInline() argument
3357 AP.OutStreamer->emitLabel(AP.getSymbol(GA)); in emitGlobalAliasInline()
3364 const DataLayout &DL, const ConstantDataSequential *CDS, AsmPrinter &AP, in emitGlobalConstantDataSequential() argument
3372 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
3377 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
3383 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList); in emitGlobalConstantDataSequential()
3384 if (AP.isVerbose()) in emitGlobalConstantDataSequential()
3385 AP.OutStreamer->getCommentOS() in emitGlobalConstantDataSequential()
3387 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(I), in emitGlobalConstantDataSequential()
3393 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList); in emitGlobalConstantDataSequential()
3394 emitGlobalConstantFP(CDS->getElementAsAPFloat(I), ET, AP); in emitGlobalConstantDataSequential()
3403 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
3407 const ConstantArray *CA, AsmPrinter &AP, in emitGlobalConstantArray() argument
3416 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
3419 emitGlobalConstantImpl(DL, CA->getOperand(I), AP, BaseCV, Offset, in emitGlobalConstantArray()
3426 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP);
3429 const ConstantVector *CV, AsmPrinter &AP, in emitGlobalConstantVector() argument
3449 emitGlobalAliasInline(AP, 0, AliasList); in emitGlobalConstantVector()
3450 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantVector()
3454 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList); in emitGlobalConstantVector()
3455 emitGlobalConstantImpl(DL, CV->getOperand(I), AP); in emitGlobalConstantVector()
3463 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
3467 const ConstantStruct *CS, AsmPrinter &AP, in emitGlobalConstantStruct() argument
3478 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar, in emitGlobalConstantStruct()
3491 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
3497 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3503 if (AP.isVerbose()) { in emitGlobalConstantFP()
3506 ET->print(AP.OutStreamer->getCommentOS()); in emitGlobalConstantFP()
3507 AP.OutStreamer->getCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
3519 if (AP.getDataLayout().isBigEndian() && !ET->isPPC_FP128Ty()) { in emitGlobalConstantFP()
3523 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
3526 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3530 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3533 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
3537 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantFP()
3538 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
3541 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3542 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP); in emitGlobalConstantFP()
3545 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) { in emitGlobalConstantLargeInt() argument
3546 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantLargeInt()
3587 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
3594 uint64_t Size = AP.getDataLayout().getTypeStoreSize(CI->getType()); in emitGlobalConstantLargeInt()
3599 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
3606 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME, in handleIndirectSymViaGOTPCRel() argument
3638 if (!AP.GlobalGOTEquivs.count(GOTEquivSym)) in handleIndirectSymViaGOTPCRel()
3646 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
3657 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0) in handleIndirectSymViaGOTPCRel()
3675 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym]; in handleIndirectSymViaGOTPCRel()
3679 const MCSymbol *FinalSym = AP.getSymbol(FinalGV); in handleIndirectSymViaGOTPCRel()
3680 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel( in handleIndirectSymViaGOTPCRel()
3681 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
3686 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses); in handleIndirectSymViaGOTPCRel()
3690 AsmPrinter &AP, const Constant *BaseCV, in emitGlobalConstantImpl() argument
3693 emitGlobalAliasInline(AP, Offset, AliasList); in emitGlobalConstantImpl()
3703 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
3709 if (AP.isVerbose()) in emitGlobalConstantImpl()
3710 AP.OutStreamer->getCommentOS() in emitGlobalConstantImpl()
3712 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3714 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantImpl()
3719 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
3725 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
3728 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
3733 return emitGlobalConstantDataSequential(DL, CDS, AP, AliasList); in emitGlobalConstantImpl()
3736 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset, AliasList); in emitGlobalConstantImpl()
3739 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset, AliasList); in emitGlobalConstantImpl()
3745 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP); in emitGlobalConstantImpl()
3753 return emitGlobalConstantImpl(DL, New, AP); in emitGlobalConstantImpl()
3758 return emitGlobalConstantVector(DL, V, AP, AliasList); in emitGlobalConstantImpl()
3762 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3767 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel()) in emitGlobalConstantImpl()
3768 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset); in emitGlobalConstantImpl()
3770 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
3915 const AsmPrinter &AP) { in emitBasicBlockLoopComments() argument
3926 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3927 Twine(AP.getFunctionNumber())+"_" + in emitBasicBlockLoopComments()
3935 raw_ostream &OS = AP.OutStreamer->getCommentOS(); in emitBasicBlockLoopComments()
3937 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber()); in emitBasicBlockLoopComments()
3947 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber()); in emitBasicBlockLoopComments()