Lines Matching refs:AP

1096 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {  in emitKill()  argument
1103 << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo()); in emitKill()
1105 AP.OutStreamer->AddComment(OS.str()); in emitKill()
1106 AP.OutStreamer->addBlankLine(); in emitKill()
1112 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugValueComment() argument
1174 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1185 AP.MF->getSubtarget().getFrameLowering(); in emitDebugValueComment()
1186 Offset = TFI->getFrameIndexReference(*AP.MF, Op.getIndex(), Reg); in emitDebugValueComment()
1198 OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo()); in emitDebugValueComment()
1209 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1216 static bool emitDebugLabelComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugLabelComment() argument
1234 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugLabelComment()
2861 AsmPrinter &AP,
2866 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
2867 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
2918 static void emitGlobalAliasInline(AsmPrinter &AP, uint64_t Offset, in emitGlobalAliasInline() argument
2924 AP.OutStreamer->emitLabel(AP.getSymbol(GA)); in emitGlobalAliasInline()
2931 const DataLayout &DL, const ConstantDataSequential *CDS, AsmPrinter &AP, in emitGlobalConstantDataSequential() argument
2939 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
2944 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2950 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList); in emitGlobalConstantDataSequential()
2951 if (AP.isVerbose()) in emitGlobalConstantDataSequential()
2952 AP.OutStreamer->getCommentOS() in emitGlobalConstantDataSequential()
2954 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(I), in emitGlobalConstantDataSequential()
2960 emitGlobalAliasInline(AP, ElementByteSize * I, AliasList); in emitGlobalConstantDataSequential()
2961 emitGlobalConstantFP(CDS->getElementAsAPFloat(I), ET, AP); in emitGlobalConstantDataSequential()
2970 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantDataSequential()
2974 const ConstantArray *CA, AsmPrinter &AP, in emitGlobalConstantArray() argument
2983 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
2986 emitGlobalConstantImpl(DL, CA->getOperand(I), AP, BaseCV, Offset, in emitGlobalConstantArray()
2993 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP);
2996 const ConstantVector *CV, AsmPrinter &AP, in emitGlobalConstantVector() argument
3016 emitGlobalAliasInline(AP, 0, AliasList); in emitGlobalConstantVector()
3017 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantVector()
3021 emitGlobalAliasInline(AP, DL.getTypeAllocSize(CV->getType()) * I, AliasList); in emitGlobalConstantVector()
3022 emitGlobalConstantImpl(DL, CV->getOperand(I), AP); in emitGlobalConstantVector()
3030 AP.OutStreamer->emitZeros(Padding); in emitGlobalConstantVector()
3034 const ConstantStruct *CS, AsmPrinter &AP, in emitGlobalConstantStruct() argument
3045 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar, in emitGlobalConstantStruct()
3058 AP.OutStreamer->emitZeros(PadSize); in emitGlobalConstantStruct()
3064 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3070 if (AP.isVerbose()) { in emitGlobalConstantFP()
3073 ET->print(AP.OutStreamer->getCommentOS()); in emitGlobalConstantFP()
3074 AP.OutStreamer->getCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
3086 if (AP.getDataLayout().isBigEndian() && !ET->isPPC_FP128Ty()) { in emitGlobalConstantFP()
3090 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
3093 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3097 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
3100 AP.OutStreamer->emitIntValueInHexWithPadding(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
3104 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantFP()
3105 AP.OutStreamer->emitZeros(DL.getTypeAllocSize(ET) - DL.getTypeStoreSize(ET)); in emitGlobalConstantFP()
3108 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument
3109 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP); in emitGlobalConstantFP()
3112 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) { in emitGlobalConstantLargeInt() argument
3113 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantLargeInt()
3153 AP.OutStreamer->emitIntValue(Val, 8); in emitGlobalConstantLargeInt()
3160 uint64_t Size = AP.getDataLayout().getTypeStoreSize(CI->getType()); in emitGlobalConstantLargeInt()
3165 AP.OutStreamer->emitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
3172 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME, in handleIndirectSymViaGOTPCRel() argument
3204 if (!AP.GlobalGOTEquivs.count(GOTEquivSym)) in handleIndirectSymViaGOTPCRel()
3212 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
3228 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0) in handleIndirectSymViaGOTPCRel()
3246 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym]; in handleIndirectSymViaGOTPCRel()
3250 const MCSymbol *FinalSym = AP.getSymbol(FinalGV); in handleIndirectSymViaGOTPCRel()
3251 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel( in handleIndirectSymViaGOTPCRel()
3252 FinalGV, FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
3257 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses); in handleIndirectSymViaGOTPCRel()
3261 AsmPrinter &AP, const Constant *BaseCV, in emitGlobalConstantImpl() argument
3264 emitGlobalAliasInline(AP, Offset, AliasList); in emitGlobalConstantImpl()
3274 return AP.OutStreamer->emitZeros(Size); in emitGlobalConstantImpl()
3280 if (AP.isVerbose()) in emitGlobalConstantImpl()
3281 AP.OutStreamer->getCommentOS() in emitGlobalConstantImpl()
3283 AP.OutStreamer->emitIntValue(CI->getZExtValue(), StoreSize); in emitGlobalConstantImpl()
3285 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantImpl()
3290 AP.OutStreamer->emitZeros(Size - StoreSize); in emitGlobalConstantImpl()
3296 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
3299 AP.OutStreamer->emitIntValue(0, Size); in emitGlobalConstantImpl()
3304 return emitGlobalConstantDataSequential(DL, CDS, AP, AliasList); in emitGlobalConstantImpl()
3307 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset, AliasList); in emitGlobalConstantImpl()
3310 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset, AliasList); in emitGlobalConstantImpl()
3316 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP); in emitGlobalConstantImpl()
3324 return emitGlobalConstantImpl(DL, New, AP); in emitGlobalConstantImpl()
3329 return emitGlobalConstantVector(DL, V, AP, AliasList); in emitGlobalConstantImpl()
3333 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
3338 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel()) in emitGlobalConstantImpl()
3339 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset); in emitGlobalConstantImpl()
3341 AP.OutStreamer->emitValue(ME, Size); in emitGlobalConstantImpl()
3482 const AsmPrinter &AP) { in emitBasicBlockLoopComments() argument
3493 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
3494 Twine(AP.getFunctionNumber())+"_" + in emitBasicBlockLoopComments()
3502 raw_ostream &OS = AP.OutStreamer->getCommentOS(); in emitBasicBlockLoopComments()
3504 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber()); in emitBasicBlockLoopComments()
3514 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber()); in emitBasicBlockLoopComments()