Lines Matching refs:AP

677 static void emitKill(const MachineInstr *MI, AsmPrinter &AP) {  in emitKill()  argument
686 AP.MF->getSubtarget().getRegisterInfo()) in emitKill()
689 AP.OutStreamer->AddComment(OS.str()); in emitKill()
690 AP.OutStreamer->AddBlankLine(); in emitKill()
696 static bool emitDebugValueComment(const MachineInstr *MI, AsmPrinter &AP) { in emitDebugValueComment() argument
728 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
773 const TargetFrameLowering *TFI = AP.MF->getSubtarget().getFrameLowering(); in emitDebugValueComment()
774 Offset += TFI->getFrameIndexReference(*AP.MF, in emitDebugValueComment()
782 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
787 OS << PrintReg(Reg, AP.MF->getSubtarget().getRegisterInfo()); in emitDebugValueComment()
794 AP.OutStreamer->emitRawComment(OS.str()); in emitDebugValueComment()
1891 AsmPrinter &AP,
1895 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
1949 AsmPrinter &AP) { in emitGlobalConstantDataSequential() argument
1957 return AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantDataSequential()
1962 return AP.OutStreamer->EmitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
1968 if (AP.isVerbose()) in emitGlobalConstantDataSequential()
1969 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantDataSequential()
1971 AP.OutStreamer->EmitIntValue(CDS->getElementAsInteger(i), in emitGlobalConstantDataSequential()
1976 emitGlobalConstantFP(cast<ConstantFP>(CDS->getElementAsConstant(I)), AP); in emitGlobalConstantDataSequential()
1983 AP.OutStreamer->EmitZeros(Padding); in emitGlobalConstantDataSequential()
1988 const ConstantArray *CA, AsmPrinter &AP, in emitGlobalConstantArray() argument
1996 AP.OutStreamer->emitFill(Bytes, Value); in emitGlobalConstantArray()
2000 emitGlobalConstantImpl(DL, CA->getOperand(i), AP, BaseCV, Offset); in emitGlobalConstantArray()
2007 const ConstantVector *CV, AsmPrinter &AP) { in emitGlobalConstantVector() argument
2009 emitGlobalConstantImpl(DL, CV->getOperand(i), AP); in emitGlobalConstantVector()
2015 AP.OutStreamer->EmitZeros(Padding); in emitGlobalConstantVector()
2019 const ConstantStruct *CS, AsmPrinter &AP, in emitGlobalConstantStruct() argument
2029 emitGlobalConstantImpl(DL, Field, AP, BaseCV, Offset + SizeSoFar); in emitGlobalConstantStruct()
2040 AP.OutStreamer->EmitZeros(PadSize); in emitGlobalConstantStruct()
2046 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument
2051 if (AP.isVerbose()) { in emitGlobalConstantFP()
2056 CFP->getType()->print(AP.OutStreamer->GetCommentOS()); in emitGlobalConstantFP()
2058 AP.OutStreamer->GetCommentOS() << "Printing <null> Type"; in emitGlobalConstantFP()
2059 AP.OutStreamer->GetCommentOS() << ' ' << StrVal << '\n'; in emitGlobalConstantFP()
2071 if (AP.getDataLayout().isBigEndian() && !CFP->getType()->isPPC_FP128Ty()) { in emitGlobalConstantFP()
2075 AP.OutStreamer->EmitIntValue(p[Chunk--], TrailingBytes); in emitGlobalConstantFP()
2078 AP.OutStreamer->EmitIntValue(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2082 AP.OutStreamer->EmitIntValue(p[Chunk], sizeof(uint64_t)); in emitGlobalConstantFP()
2085 AP.OutStreamer->EmitIntValue(p[Chunk], TrailingBytes); in emitGlobalConstantFP()
2089 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantFP()
2090 AP.OutStreamer->EmitZeros(DL.getTypeAllocSize(CFP->getType()) - in emitGlobalConstantFP()
2094 static void emitGlobalConstantLargeInt(const ConstantInt *CI, AsmPrinter &AP) { in emitGlobalConstantLargeInt() argument
2095 const DataLayout &DL = AP.getDataLayout(); in emitGlobalConstantLargeInt()
2134 AP.OutStreamer->EmitIntValue(Val, 8); in emitGlobalConstantLargeInt()
2141 uint64_t Size = AP.getDataLayout().getTypeAllocSize(CI->getType()); in emitGlobalConstantLargeInt()
2146 AP.OutStreamer->EmitIntValue(ExtraBits, Size); in emitGlobalConstantLargeInt()
2153 static void handleIndirectSymViaGOTPCRel(AsmPrinter &AP, const MCExpr **ME, in handleIndirectSymViaGOTPCRel() argument
2186 if (!AP.GlobalGOTEquivs.count(GOTEquivSym)) in handleIndirectSymViaGOTPCRel()
2194 const MCSymbol *BaseSym = AP.getSymbol(BaseGV); in handleIndirectSymViaGOTPCRel()
2211 if (!AP.getObjFileLowering().supportGOTPCRelWithOffset() && GOTPCRelCst != 0) in handleIndirectSymViaGOTPCRel()
2230 AsmPrinter::GOTEquivUsePair Result = AP.GlobalGOTEquivs[GOTEquivSym]; in handleIndirectSymViaGOTPCRel()
2234 const MCSymbol *FinalSym = AP.getSymbol(FinalGV); in handleIndirectSymViaGOTPCRel()
2235 *ME = AP.getObjFileLowering().getIndirectSymViaGOTPCRel( in handleIndirectSymViaGOTPCRel()
2236 FinalSym, MV, Offset, AP.MMI, *AP.OutStreamer); in handleIndirectSymViaGOTPCRel()
2241 AP.GlobalGOTEquivs[GOTEquivSym] = std::make_pair(GV, NumUses); in handleIndirectSymViaGOTPCRel()
2245 AsmPrinter &AP, const Constant *BaseCV, in emitGlobalConstantImpl() argument
2256 return AP.OutStreamer->EmitZeros(Size); in emitGlobalConstantImpl()
2264 if (AP.isVerbose()) in emitGlobalConstantImpl()
2265 AP.OutStreamer->GetCommentOS() << format("0x%" PRIx64 "\n", in emitGlobalConstantImpl()
2267 AP.OutStreamer->EmitIntValue(CI->getZExtValue(), Size); in emitGlobalConstantImpl()
2270 emitGlobalConstantLargeInt(CI, AP); in emitGlobalConstantImpl()
2276 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
2279 AP.OutStreamer->EmitIntValue(0, Size); in emitGlobalConstantImpl()
2284 return emitGlobalConstantDataSequential(DL, CDS, AP); in emitGlobalConstantImpl()
2287 return emitGlobalConstantArray(DL, CVA, AP, BaseCV, Offset); in emitGlobalConstantImpl()
2290 return emitGlobalConstantStruct(DL, CVS, AP, BaseCV, Offset); in emitGlobalConstantImpl()
2296 return emitGlobalConstantImpl(DL, CE->getOperand(0), AP); in emitGlobalConstantImpl()
2304 return emitGlobalConstantImpl(DL, New, AP); in emitGlobalConstantImpl()
2309 return emitGlobalConstantVector(DL, V, AP); in emitGlobalConstantImpl()
2313 const MCExpr *ME = AP.lowerConstant(CV); in emitGlobalConstantImpl()
2318 if (AP.getObjFileLowering().supportIndirectSymViaGOTPCRel()) in emitGlobalConstantImpl()
2319 handleIndirectSymViaGOTPCRel(AP, &ME, BaseCV, Offset); in emitGlobalConstantImpl()
2321 AP.OutStreamer->EmitValue(ME, Size); in emitGlobalConstantImpl()
2430 const AsmPrinter &AP) { in emitBasicBlockLoopComments() argument
2441 AP.OutStreamer->AddComment(" in Loop: Header=BB" + in emitBasicBlockLoopComments()
2442 Twine(AP.getFunctionNumber())+"_" + in emitBasicBlockLoopComments()
2450 raw_ostream &OS = AP.OutStreamer->GetCommentOS(); in emitBasicBlockLoopComments()
2452 PrintParentLoopComment(OS, Loop->getParentLoop(), AP.getFunctionNumber()); in emitBasicBlockLoopComments()
2462 PrintChildLoopComment(OS, Loop, AP.getFunctionNumber()); in emitBasicBlockLoopComments()