• Home
  • Raw
  • Download

Lines Matching refs:Asm

55   auto &OS = *Asm->OutStreamer;  in endModule()
59 OS.EmitCOFFSafeSEH(Asm->getSymbol(&F)); in endModule()
71 shouldEmitMoves = Asm->needsSEHMoves(); in beginFunction()
73 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); in beginFunction()
93 if (!Asm->MAI->usesWindowsCFI()) { in beginFunction()
99 beginFunclet(MF->front(), Asm->CurrentFnSym); in beginFunction()
126 Asm->OutStreamer->PushSection(); in endFunction()
130 MCSection *XData = WinEH::UnwindEmitter::getXDataSection(Asm->CurrentFnSym, in endFunction()
131 Asm->OutContext); in endFunction()
132 Asm->OutStreamer->SwitchSection(XData); in endFunction()
147 Asm->OutStreamer->PopSection(); in endFunction()
152 static MCSymbol *getMCSymbolForMBB(AsmPrinter *Asm, in getMCSymbolForMBB() argument
175 const Function *F = Asm->MF->getFunction(); in beginFunclet()
178 Sym = getMCSymbolForMBB(Asm, &MBB); in beginFunclet()
181 Asm->OutStreamer->BeginCOFFSymbolDef(Sym); in beginFunclet()
182 Asm->OutStreamer->EmitCOFFSymbolStorageClass(COFF::IMAGE_SYM_CLASS_STATIC); in beginFunclet()
183 Asm->OutStreamer->EmitCOFFSymbolType(COFF::IMAGE_SYM_DTYPE_FUNCTION in beginFunclet()
185 Asm->OutStreamer->EndCOFFSymbolDef(); in beginFunclet()
189 Asm->EmitAlignment(std::max(Asm->MF->getAlignment(), MBB.getAlignment()), in beginFunclet()
193 Asm->OutStreamer->EmitLabel(Sym); in beginFunclet()
198 Asm->OutStreamer->EmitWinCFIStartProc(Sym); in beginFunclet()
201 const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); in beginFunclet()
208 TLOF.getCFIPersonalitySymbol(PerFn, *Asm->Mang, Asm->TM, MMI); in beginFunclet()
218 Asm->OutStreamer->EmitWinEHHandler(PersHandlerSym, true, true); in beginFunclet()
228 const Function *F = Asm->MF->getFunction(); in endFunclet()
235 Asm->OutStreamer->PushSection(); in endFunclet()
238 Asm->OutStreamer->EmitWinEHHandlerData(); in endFunclet()
245 MCSymbol *FuncInfoXData = Asm->OutContext.getOrCreateSymbol( in endFunclet()
247 Asm->OutStreamer->EmitValue(create32bitRef(FuncInfoXData), 4); in endFunclet()
252 emitCSpecificHandlerTable(Asm->MF); in endFunclet()
257 Asm->OutStreamer->PopSection(); in endFunclet()
260 Asm->OutStreamer->EmitWinCFIEndProc(); in endFunclet()
269 return MCConstantExpr::create(0, Asm->OutContext); in create32bitRef()
273 Asm->OutContext); in create32bitRef()
278 return MCConstantExpr::create(0, Asm->OutContext); in create32bitRef()
279 return create32bitRef(Asm->getSymbol(GV)); in create32bitRef()
284 MCConstantExpr::create(1, Asm->OutContext), in getLabelPlusOne()
285 Asm->OutContext); in getLabelPlusOne()
291 MCSymbolRefExpr::create(OffsetOf, Asm->OutContext), in getOffset()
292 MCSymbolRefExpr::create(OffsetFrom, Asm->OutContext), Asm->OutContext); in getOffset()
298 MCConstantExpr::create(1, Asm->OutContext), in getOffsetPlusOne()
299 Asm->OutContext); in getOffsetPlusOne()
304 const TargetFrameLowering &TFI = *Asm->MF->getSubtarget().getFrameLowering(); in getFrameIndexOffset()
306 if (Asm->MAI->usesWindowsCFI()) in getFrameIndexOffset()
307 return TFI.getFrameIndexReferenceFromSP(*Asm->MF, FrameIndex, UnusedReg); in getFrameIndexOffset()
311 int Offset = TFI.getFrameIndexReference(*Asm->MF, FrameIndex, UnusedReg); in getFrameIndexOffset()
507 auto &OS = *Asm->OutStreamer; in emitCSpecificHandlerTable()
508 MCContext &Ctx = Asm->OutContext; in emitCSpecificHandlerTable()
519 Asm->OutStreamer->EmitAssignment(ParentFrameOffset, MCOffset); in emitCSpecificHandlerTable()
566 auto &OS = *Asm->OutStreamer; in emitSEHActionsForRange()
567 MCContext &Ctx = Asm->OutContext; in emitSEHActionsForRange()
576 FilterOrFinally = create32bitRef(getMCSymbolForMBB(Asm, Handler)); in emitSEHActionsForRange()
598 auto &OS = *Asm->OutStreamer; in emitCXXFrameHandler3Table()
609 Asm->OutContext.getOrCreateSymbol(Twine("$cppxdata$", FuncLinkageName)); in emitCXXFrameHandler3Table()
612 FuncInfoXData = Asm->OutContext.getOrCreateLSDASymbol(FuncLinkageName); in emitCXXFrameHandler3Table()
616 if (Asm->MAI->usesWindowsCFI()) in emitCXXFrameHandler3Table()
624 UnwindMapXData = Asm->OutContext.getOrCreateSymbol( in emitCXXFrameHandler3Table()
628 Asm->OutContext.getOrCreateSymbol(Twine("$tryMap$", FuncLinkageName)); in emitCXXFrameHandler3Table()
631 Asm->OutContext.getOrCreateSymbol(Twine("$ip2state$", FuncLinkageName)); in emitCXXFrameHandler3Table()
657 if (Asm->MAI->usesWindowsCFI()) in emitCXXFrameHandler3Table()
670 getMCSymbolForMBB(Asm, UME.Cleanup.dyn_cast<MachineBasicBlock *>()); in emitCXXFrameHandler3Table()
692 Asm->OutContext.getOrCreateSymbol(Twine("$handlerMap$") in emitCXXFrameHandler3Table()
739 FrameAllocOffsetRef = MCConstantExpr::create(Offset, Asm->OutContext); in emitCXXFrameHandler3Table()
741 FrameAllocOffsetRef = MCConstantExpr::create(0, Asm->OutContext); in emitCXXFrameHandler3Table()
745 getMCSymbolForMBB(Asm, HT.Handler.dyn_cast<MachineBasicBlock *>()); in emitCXXFrameHandler3Table()
795 StartLabel = Asm->getFunctionBegin(); in computeIP2StateTable()
801 StartLabel = getMCSymbolForMBB(Asm, &*FuncletStart); in computeIP2StateTable()
830 MCContext &Ctx = Asm->OutContext; in emitEHRegistrationOffsetLabel()
834 const TargetFrameLowering *TFI = Asm->MF->getSubtarget().getFrameLowering(); in emitEHRegistrationOffsetLabel()
836 *Asm->MF, FuncInfo.EHRegNodeFrameIndex, UnusedReg); in emitEHRegistrationOffsetLabel()
838 Asm->OutStreamer->EmitAssignment(ParentFrameOffset, MCOffset); in emitEHRegistrationOffsetLabel()
845 MCStreamer &OS = *Asm->OutStreamer; in emitExceptHandlerTable()
853 MCSymbol *LSDALabel = Asm->OutContext.getOrCreateLSDASymbol(FLinkageName); in emitExceptHandlerTable()
931 MCStreamer &OS = *Asm->OutStreamer; in emitCLRExceptionTable()
933 MCSymbol *FuncBeginSym = Asm->getFunctionBegin(); in emitCLRExceptionTable()
934 MCSymbol *FuncEndSym = Asm->getFunctionEnd(); in emitCLRExceptionTable()
1000 EndSymbol = getMCSymbolForMBB(Asm, &*FuncletEnd); in emitCLRExceptionTable()
1113 MCSymbol *BeginSym = getMCSymbolForMBB(Asm, HandlerBlock); in emitCLRExceptionTable()