Lines Matching refs:AP
1148 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) { in emitKill() argument
1155 << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo()); in emitKill()
1157 AP.OutStreamer->AddComment(OS.str()); in emitKill()
1158 AP.OutStreamer->addBlankLine(); in emitKill()
1164 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugValueComment() argument
1240 AP.MF->getSubtarget().getFrameLowering(); in emitDebugValueComment()
1241 Offset = TFI->getFrameIndexReference(*AP.MF, Op.getIndex(), Reg); in emitDebugValueComment()
1253 OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo()); in emitDebugValueComment()
1264 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1271 static bool emitDebugLabelComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugLabelComment() argument
1289 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
3283 AsmPrinter &AP,
3288 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
3289 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
3340 static void emitGlobalAliasInline(AsmPrinter &AP, uint64_t Offset, in emitGlobalAliasInline() argument
3346 AP.OutStreamer->emitLabel(AP.getSymbol(GA)); in emitGlobalAliasInline()
3353 const DataLayout &DL, const ConstantDataSequential *CDS, AsmPrinter &AP, in emitGlobalConstantDataSequential() argument
3361 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
3366 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
3372 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList); in emitGlobalConstantDataSequential()
3373 if (AP.isVerbose()) in emitGlobalConstantDataSequential()
3374 AP.OutStreamer->getCommentOS() in emitGlobalConstantDataSequential()
3376 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(I), in emitGlobalConstantDataSequential()
3382 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList); in emitGlobalConstantDataSequential()
3383 emitGlobalConstantFP(CDS->getElementAsAPFloat(I), ET, AP); in emitGlobalConstantDataSequential()
3392 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
3396 const ConstantArray *CA, AsmPrinter &AP, in emitGlobalConstantArray() argument
3405 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
3408 emitGlobalConstantImpl(DL, CA->getOperand(I), AP, BaseCV, Offset, in emitGlobalConstantArray()
3415 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP);
3418 const ConstantVector *CV, AsmPrinter &AP, in emitGlobalConstantVector() argument
3438 emitGlobalAliasInline(AP, 0, AliasList); in emitGlobalConstantVector()
3439 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantVector()
3443 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList); in emitGlobalConstantVector()
3444 emitGlobalConstantImpl(DL, CV->getOperand(I), AP); in emitGlobalConstantVector()
3452 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
3456 const ConstantStruct *CS, AsmPrinter &AP, in emitGlobalConstantStruct() argument
3467 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar, in emitGlobalConstantStruct()
3480 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
3486 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3492 if (AP.isVerbose()) { in emitGlobalConstantFP()
3495 ET->print(AP.OutStreamer->getCommentOS()); in emitGlobalConstantFP()
3496 AP.OutStreamer->getCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
3508 if (AP.getDataLayout().isBigEndian() && !ET->isPPC_FP128Ty()) { in emitGlobalConstantFP()
3512 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
3515 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3519 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3522 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
3526 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantFP()
3527 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
3530 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3531 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP); in emitGlobalConstantFP()
3534 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) { in emitGlobalConstantLargeInt() argument
3535 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantLargeInt()
3576 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
3583 uint64_t Size = AP.getDataLayout().getTypeStoreSize(CI->getType()); in emitGlobalConstantLargeInt()
3588 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
3595 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME, in handleIndirectSymViaGOTPCRel() argument
3627 if (!AP.GlobalGOTEquivs.count(GOTEquivSym)) in handleIndirectSymViaGOTPCRel()
3635 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
3646 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0) in handleIndirectSymViaGOTPCRel()
3664 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym]; in handleIndirectSymViaGOTPCRel()
3668 const MCSymbol *FinalSym = AP.getSymbol(FinalGV); in handleIndirectSymViaGOTPCRel()
3669 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel( in handleIndirectSymViaGOTPCRel()
3670 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
3675 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses); in handleIndirectSymViaGOTPCRel()
3679 AsmPrinter &AP, const Constant *BaseCV, in emitGlobalConstantImpl() argument
3682 emitGlobalAliasInline(AP, Offset, AliasList); in emitGlobalConstantImpl()
3692 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
3698 if (AP.isVerbose()) in emitGlobalConstantImpl()
3699 AP.OutStreamer->getCommentOS() in emitGlobalConstantImpl()
3701 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3703 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantImpl()
3708 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
3714 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
3717 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
3722 return emitGlobalConstantDataSequential(DL, CDS, AP, AliasList); in emitGlobalConstantImpl()
3725 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset, AliasList); in emitGlobalConstantImpl()
3728 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset, AliasList); in emitGlobalConstantImpl()
3734 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP); in emitGlobalConstantImpl()
3742 return emitGlobalConstantImpl(DL, New, AP); in emitGlobalConstantImpl()
3747 return emitGlobalConstantVector(DL, V, AP, AliasList); in emitGlobalConstantImpl()
3751 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3756 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel()) in emitGlobalConstantImpl()
3757 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset); in emitGlobalConstantImpl()
3759 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
3900 const AsmPrinter &AP) { in emitBasicBlockLoopComments() argument
3911 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3912 Twine(AP.getFunctionNumber())+"_" + in emitBasicBlockLoopComments()
3920 raw_ostream &OS = AP.OutStreamer->getCommentOS(); in emitBasicBlockLoopComments()
3922 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber()); in emitBasicBlockLoopComments()
3932 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber()); in emitBasicBlockLoopComments()