Lines Matching defs:AP
1153 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {
1160 << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo());
1162 AP.OutStreamer->AddComment(Str);
1163 AP.OutStreamer->addBlankLine();
1166 static void emitFakeUse(const MachineInstr *MI, AsmPrinter &AP) {
1175 OS << ' ' << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo());
1177 AP.OutStreamer->AddComment(OS.str());
1178 AP.OutStreamer->addBlankLine();
1184 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) {
1260 AP.MF->getSubtarget().getFrameLowering();
1261 Offset = TFI->getFrameIndexReference(*AP.MF, Op.getIndex(), Reg);
1273 OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo());
1284 AP.OutStreamer->emitRawComment(Str);
1291 static bool emitDebugLabelComment(const MachineInstr *MI, AsmPrinter &AP) {
1309 AP.OutStreamer->emitRawComment(OS.str());
3545 AsmPrinter &AP,
3550 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
3551 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
3602 static void emitGlobalAliasInline(AsmPrinter &AP, uint64_t Offset,
3608 AP.OutStreamer->emitLabel(AP.getSymbol(GA));
3615 const DataLayout &DL, const ConstantDataSequential *CDS, AsmPrinter &AP,
3623 return AP.OutStreamer->emitFill(Bytes, Value);
3628 return AP.OutStreamer->emitBytes(CDS->getAsString());
3634 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList);
3635 if (AP.isVerbose())
3636 AP.OutStreamer->getCommentOS()
3638 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(I),
3644 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList);
3645 emitGlobalConstantFP(CDS->getElementAsAPFloat(I), ET, AP);
3654 AP.OutStreamer->emitZeros(Padding);
3658 const ConstantArray *CA, AsmPrinter &AP,
3667 AP.OutStreamer->emitFill(Bytes, Value);
3670 emitGlobalConstantImpl(DL, CA->getOperand(I), AP, BaseCV, Offset,
3677 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP);
3680 AsmPrinter &AP,
3701 emitGlobalAliasInline(AP, 0, AliasList);
3702 emitGlobalConstantLargeInt(CI, AP);
3706 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList);
3707 emitGlobalConstantImpl(DL, CV->getAggregateElement(I), AP);
3714 AP.OutStreamer->emitZeros(Padding);
3718 const ConstantStruct *CS, AsmPrinter &AP,
3729 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar,
3742 AP.OutStreamer->emitZeros(PadSize);
3748 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) {
3754 if (AP.isVerbose()) {
3757 ET->print(AP.OutStreamer->getCommentOS());
3758 AP.OutStreamer->getCommentOS() << ' ' << StrVal << '\n';
3770 if (AP.getDataLayout().isBigEndian() && !ET->isPPC_FP128Ty()) {
3774 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes);
3777 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t));
3781 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t));
3784 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes);
3788 const DataLayout &DL = AP.getDataLayout();
3789 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET));
3792 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) {
3793 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP);
3796 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) {
3797 const DataLayout &DL = AP.getDataLayout();
3838 AP.OutStreamer->emitIntValue(Val, 8);
3845 uint64_t Size = AP.getDataLayout().getTypeStoreSize(CI->getType());
3850 AP.OutStreamer->emitIntValue(ExtraBits, Size);
3857 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME,
3889 if (!AP.GlobalGOTEquivs.count(GOTEquivSym))
3897 const MCSymbol *BaseSym = AP.getSymbol(BaseGV);
3908 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0)
3926 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym];
3930 const MCSymbol *FinalSym = AP.getSymbol(FinalGV);
3931 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel(
3932 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer);
3937 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses);
3941 AsmPrinter &AP, const Constant *BaseCV,
3944 assert((!AliasList || AP.TM.getTargetTriple().isOSBinFormatXCOFF()) &&
3946 emitGlobalAliasInline(AP, Offset, AliasList);
3965 AP.OutStreamer->emitZeros(GapToNext);
3967 emitGlobalAliasInline(AP, Offset + SizeSoFar, AliasList);
3969 AP.OutStreamer->emitZeros(Size - SizeSoFar);
3973 return AP.OutStreamer->emitZeros(Size);
3977 return AP.OutStreamer->emitZeros(Size);
3981 return emitGlobalConstantVector(DL, CV, AP, AliasList);
3985 if (AP.isVerbose())
3986 AP.OutStreamer->getCommentOS()
3988 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize);
3990 emitGlobalConstantLargeInt(CI, AP);
3995 AP.OutStreamer->emitZeros(Size - StoreSize);
4002 return emitGlobalConstantVector(DL, CV, AP, AliasList);
4004 return emitGlobalConstantFP(CFP, AP);
4008 AP.OutStreamer->emitIntValue(0, Size);
4013 return emitGlobalConstantDataSequential(DL, CDS, AP, AliasList);
4016 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset, AliasList);
4019 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset, AliasList);
4025 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP);
4033 return emitGlobalConstantImpl(DL, New, AP);
4038 return emitGlobalConstantVector(DL, CV, AP, AliasList);
4042 const MCExpr *ME = AP.lowerConstant(CV);
4047 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel())
4048 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset);
4050 AP.OutStreamer->emitValue(ME, Size);
4195 const AsmPrinter &AP) {
4206 AP.OutStreamer->AddComment(" in Loop: Header=BB" +
4207 Twine(AP.getFunctionNumber())+"_" +
4215 raw_ostream &OS = AP.OutStreamer->getCommentOS();
4217 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber());
4227 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber());