Home
last modified time | relevance | path

Searched refs:OutContext (Results 1 – 25 of 50) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCResourceInfo.cpp28 MCContext &OutContext, bool IsLocal) { in getSymbol() argument
29 auto GOCS = [FuncName, &OutContext, IsLocal](StringRef Suffix) { in getSymbol()
31 IsLocal ? OutContext.getAsmInfo()->getPrivateGlobalPrefix() : ""; in getSymbol()
32 return OutContext.getOrCreateSymbol(Twine(Prefix) + FuncName + in getSymbol()
64 void MCResourceInfo::assignMaxRegs(MCContext &OutContext) { in assignMaxRegs() argument
66 MCSymbol *MaxVGPRSym = getMaxVGPRSymbol(OutContext); in assignMaxRegs()
67 MCSymbol *MaxAGPRSym = getMaxAGPRSymbol(OutContext); in assignMaxRegs()
68 MCSymbol *MaxSGPRSym = getMaxSGPRSymbol(OutContext); in assignMaxRegs()
70 auto assignMaxRegSym = [&OutContext](MCSymbol *Sym, int32_t RegCount) { in assignMaxRegs()
71 const MCExpr *MaxExpr = MCConstantExpr::create(RegCount, OutContext); in assignMaxRegs()
[all …]
H A DAMDGPUMCResourceInfo.h56 MCContext &OutContext);
59 void assignMaxRegs(MCContext &OutContext);
65 MCContext &OutContext);
80 MCContext &OutContext, bool IsLocal);
88 void finalize(MCContext &OutContext);
90 MCSymbol *getMaxVGPRSymbol(MCContext &OutContext);
91 MCSymbol *getMaxAGPRSymbol(MCContext &OutContext);
92 MCSymbol *getMaxSGPRSymbol(MCContext &OutContext);
102 MCContext &OutContext);
H A DAMDGPUAsmPrinter.cpp183 OutContext.reportError({}, "xnack setting of '" + Twine(MF->getName()) + in emitFunctionBodyStart()
192 OutContext.reportError({}, "sramecc setting of '" + Twine(MF->getName()) + in emitFunctionBodyStart()
306 OutContext.reportError({}, in emitGlobalVariable()
381 FnSym->getName(), RIK::RIK_PrivateSegSize, OutContext, IsLocal); in validateMCResourceInfo()
394 RI.getSymbol(FnSym->getName(), RIK::RIK_NumSGPR, OutContext, IsLocal); in validateMCResourceInfo()
411 RI.getSymbol(FnSym->getName(), RIK::RIK_UsesVCC, OutContext, IsLocal); in validateMCResourceInfo()
413 FnSym->getName(), RIK::RIK_UsesFlatScratch, OutContext, IsLocal); in validateMCResourceInfo()
440 RI.getSymbol(FnSym->getName(), RIK::RIK_NumVGPR, OutContext, IsLocal); in validateMCResourceInfo()
442 RI.getSymbol(FnSym->getName(), RIK::RIK_NumAGPR, OutContext, IsLocal); in validateMCResourceInfo()
463 MCConstantExpr::create(NumSGPRsForWavesPerEU, OutContext), in validateMCResourceInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMMCInstLower.cpp44 const MCExpr *Expr = MCSymbolRefExpr::create(Symbol, Specifier, OutContext); in GetSymbolRef()
51 Expr = MCSymbolRefExpr::create(Symbol, Specifier, OutContext); in GetSymbolRef()
52 Expr = ARM::createLower16(Expr, OutContext); in GetSymbolRef()
55 Expr = MCSymbolRefExpr::create(Symbol, Specifier, OutContext); in GetSymbolRef()
56 Expr = ARM::createUpper16(Expr, OutContext); in GetSymbolRef()
59 Expr = MCSymbolRefExpr::create(Symbol, Specifier, OutContext); in GetSymbolRef()
60 Expr = ARM::createLower0_7(Expr, OutContext); in GetSymbolRef()
63 Expr = MCSymbolRefExpr::create(Symbol, Specifier, OutContext); in GetSymbolRef()
64 Expr = ARM::createLower8_15(Expr, OutContext); in GetSymbolRef()
67 Expr = MCSymbolRefExpr::create(Symbol, Specifier, OutContext); in GetSymbolRef()
[all …]
H A DARMAsmPrinter.cpp83 OutContext.getOrCreateSymbol("__acle_se_" + CurrentFnSym->getName()); in emitFunctionEntryLabel()
100 (Subtarget->isTargetELF() ? ARM::S_TARGET1 : ARM::S_None), OutContext); in emitXXStructor()
273 return OutContext.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in GetCPISymbol()
286 return OutContext.getOrCreateSymbol(Name); in GetARMJTIPICJumpTableLabel()
904 MCSymbol *MCSym = OutContext.getOrCreateSymbol(Name); in GetARMGVSymbol()
976 MCSym, getModifierSpecifier(ACPV->getModifier()), OutContext); in emitMachineConstantPoolValue()
981 ACPV->getLabelId(), OutContext); in emitMachineConstantPoolValue()
982 const MCExpr *PCRelExpr = MCSymbolRefExpr::create(PCLabel, OutContext); in emitMachineConstantPoolValue()
986 OutContext), in emitMachineConstantPoolValue()
987 OutContext); in emitMachineConstantPoolValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcAsmPrinter.cpp84 MCContext &OutContext) { in createSparcMCOperand() argument
85 const MCSymbolRefExpr *MCSym = MCSymbolRefExpr::create(Sym, OutContext); in createSparcMCOperand()
86 auto *expr = MCSpecifierExpr::create(MCSym, Kind, OutContext); in createSparcMCOperand()
90 MCContext &OutContext) { in createPCXCallOP() argument
91 return MCOperand::createExpr(MCSymbolRefExpr::create(Label, OutContext)); in createPCXCallOP()
96 MCContext &OutContext) { in createPCXRelExprOp() argument
97 const MCSymbolRefExpr *GOT = MCSymbolRefExpr::create(GOTLabel, OutContext); in createPCXRelExprOp()
99 OutContext); in createPCXRelExprOp()
101 OutContext); in createPCXRelExprOp()
103 const MCBinaryExpr *Sub = MCBinaryExpr::createSub(Cur, Start, OutContext); in createPCXRelExprOp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DFaultMaps.cpp31 MCContext &OutContext = AP.OutStreamer->getContext(); in recordFaultingOp() local
34 MCSymbolRefExpr::create(FaultingLabel, OutContext), in recordFaultingOp()
35 MCSymbolRefExpr::create(AP.CurrentFnSymForSize, OutContext), OutContext); in recordFaultingOp()
38 MCSymbolRefExpr::create(HandlerLabel, OutContext), in recordFaultingOp()
39 MCSymbolRefExpr::create(AP.CurrentFnSymForSize, OutContext), OutContext); in recordFaultingOp()
49 MCContext &OutContext = AP.OutStreamer->getContext(); in serializeToFaultMapSection() local
54 OutContext.getObjectFileInfo()->getFaultMapSection(); in serializeToFaultMapSection()
58 OS.emitLabel(OutContext.getOrCreateSymbol(Twine("__LLVM_FaultMaps"))); in serializeToFaultMapSection()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonAsmPrinter.cpp206 Sym = AP.OutContext.getOrCreateSymbol(Twine(symbolName)); in smallData()
234 Sym = AP.OutContext.getOrCreateSymbol(Twine(LitaName)); in smallData()
290 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction()
297 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction()
304 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction()
311 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction()
318 const MCConstantExpr *C255 = MCConstantExpr::create(255, OutContext); in HexagonProcessInstruction()
339 MCSymbolRefExpr::create(Sym, OutContext))); in HexagonProcessInstruction()
356 MCSymbolRefExpr::create(Sym, OutContext), OutContext))); in HexagonProcessInstruction()
443 const MCExpr *One = MCConstantExpr::create(1, OutContext); in HexagonProcessInstruction()
[all …]
H A DHexagonMCInstLower.cpp42 MCContext &MC = Printer.OutContext; in GetSymbolRef()
119 MCInst *MCI = AP.OutContext.createMCInst(); in HexagonLowerToMC()
146 AP.OutContext), in HexagonLowerToMC()
147 AP.OutContext); in HexagonLowerToMC()
154 MCConstantExpr::create(MO.getImm(), AP.OutContext), AP.OutContext); in HexagonLowerToMC()
161 AP.OutContext); in HexagonLowerToMC()
162 Expr = HexagonMCExpr::create(Expr, AP.OutContext); in HexagonLowerToMC()
189 HexagonMCInstrInfo::extendIfNeeded(AP.OutContext, MCII, MCB, *MCI); in HexagonLowerToMC()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCAsmPrinter.cpp638 const MCExpr *SymVar = MCSymbolRefExpr::create(MOSymbol, OutContext); in LowerPATCHPOINT()
685 MCSymbol *TlsCall = createMCSymbolForTlsGetAddr(OutContext, MI->getOpcode()); in EmitAIXTlsCallHelper()
686 const MCExpr *TlsRef = MCSymbolRefExpr::create(TlsCall, OutContext); in EmitAIXTlsCallHelper()
730 MCSymbol *TlsGetAddr = OutContext.getOrCreateSymbol("__tls_get_addr"); in emitTlsCall()
735 const MCExpr *TlsRef = MCSymbolRefExpr::create(TlsGetAddr, Kind, OutContext); in emitTlsCall()
741 TlsRef, MCConstantExpr::create(32768, OutContext), OutContext); in emitTlsCall()
745 const MCExpr *SymVar = MCSymbolRefExpr::create(MOSymbol, VK, OutContext); in emitTlsCall()
802 return MCSymbolRefExpr::create(S, Spec, OutContext); in symbolWithSpecifier()
855 Expr, MCConstantExpr::create(-Adjustment, OutContext), OutContext); in emitInstruction()
952 OutContext.getOrCreateSymbol(StringRef("_GLOBAL_OFFSET_TABLE_")); in emitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVEAsmPrinter.cpp72 MCContext &OutContext) { in createVEMCOperand() argument
73 const MCSymbolRefExpr *MCSym = MCSymbolRefExpr::create(Sym, OutContext); in createVEMCOperand()
75 MCSpecifierExpr::create(MCSym, Kind, OutContext)); in createVEMCOperand()
79 MCContext &OutContext) { in createGOTRelExprOp() argument
80 const MCSymbolRefExpr *GOT = MCSymbolRefExpr::create(GOTLabel, OutContext); in createGOTRelExprOp()
81 return MCOperand::createExpr(MCSpecifierExpr::create(GOT, Kind, OutContext)); in createGOTRelExprOp()
170 MCContext &OutContext, const MCSubtargetInfo &STI) { in emitHiLo() argument
172 MCOperand hi = createVEMCOperand(HiKind, GOTSym, OutContext); in emitHiLo()
173 MCOperand lo = createVEMCOperand(LoKind, GOTSym, OutContext); in emitHiLo()
183 OutContext.getOrCreateSymbol(Twine("_GLOBAL_OFFSET_TABLE_")); in lowerGETGOTAndEmitMCInsts()
[all …]
H A DVEMCInstLower.cpp33 const MCExpr *Expr = MCSymbolRefExpr::create(Symbol, AP.OutContext); in LowerSymbolOperand()
37 Expr, MCConstantExpr::create(MO.getOffset(), AP.OutContext), in LowerSymbolOperand()
38 AP.OutContext); in LowerSymbolOperand()
39 Expr = MCSpecifierExpr::create(Expr, Kind, AP.OutContext); in LowerSymbolOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZAsmPrinter.cpp657 MCSymbol *DotSym = OutContext.createTempSymbol(); in emitInstruction()
660 const MCSymbolRefExpr *Expr = MCSymbolRefExpr::create(DotSym, OutContext); in emitInstruction()
661 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext); in emitInstruction()
663 .addExpr(MCBinaryExpr::createAdd(Expr, ConstExpr, OutContext)); in emitInstruction()
670 MCSymbol *DotSym = OutContext.createTempSymbol(); in emitInstruction()
673 const MCSymbolRefExpr *Expr = MCSymbolRefExpr::create(DotSym, OutContext); in emitInstruction()
674 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext); in emitInstruction()
678 .addExpr(MCBinaryExpr::createAdd(Expr, ConstExpr, OutContext)); in emitInstruction()
729 It->second = OutContext.createTempSymbol(); in emitInstruction()
731 const MCSymbolRefExpr *Dot = MCSymbolRefExpr::create(DotSym, OutContext); in emitInstruction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DWasmException.cpp37 if (Asm->OutContext.lookupSymbol(NameStr)) { in endModule()
63 MCContext &OutContext = Asm->OutStreamer->getContext(); in endFunction() local
65 MCSymbolRefExpr::create(LSDAEndLabel, OutContext), in endFunction()
66 MCSymbolRefExpr::create(LSDALabel, OutContext), OutContext); in endFunction()
H A DWinException.cpp56 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGEHContSection()); in endModule()
269 MCSymbol *FuncInfoXData = Asm->OutContext.getOrCreateSymbol( in endFuncletImpl()
310 return MCConstantExpr::create(0, Asm->OutContext); in create32bitRef()
312 return MCSymbolRefExpr::create(Value, Spec, Asm->OutContext); in create32bitRef()
317 return MCConstantExpr::create(0, Asm->OutContext); in create32bitRef()
323 Asm->OutContext); in getLabel()
328 MCConstantExpr::create(1, Asm->OutContext), in getLabelPlusOne()
329 Asm->OutContext); in getLabelPlusOne()
335 MCSymbolRefExpr::create(OffsetOf, Asm->OutContext), in getOffset()
336 MCSymbolRefExpr::create(OffsetFrom, Asm->OutContext), Asm->OutContext); in getOffset()
[all …]
H A DWinCFGuard.cpp82 return Asm->OutContext.lookupSymbol(Twine("__imp_") + Sym->getName()); in lookupImpSymbol()
112 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGFIDsSection()); in endModule()
117 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGIATsSection()); in endModule()
123 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGLJMPSection()); in endModule()
H A DAsmPrinter.cpp289 AddrLabelSymbols = std::make_unique<AddrLabelMap>(OutContext); in getAddrLabelSymbolToEmit()
392 OutContext(Streamer->getContext()), OutStreamer(std::move(Streamer)), in AsmPrinter()
475 .Initialize(OutContext, TM); in doInitialization()
535 OutContext.getObjectFileInfo()->getTextSection()); in doInitialization()
769 OutContext.reportError(SMLoc(), in emitGlobalVariable()
780 OutContext.reportError(SMLoc(), "symbol '" + Twine(GVSym->getName()) + in emitGlobalVariable()
860 OutContext.getOrCreateSymbol(GVSym->getName() + Twine("$tlv$init")); in emitGlobalVariable()
916 MCConstantExpr::create(Size, OutContext)); in emitGlobalVariable()
942 OutStreamer->emitLabel(OutContext.createLinkerPrivateTempSymbol()); in emitFunctionPrefix()
1008 OutContext.createLinkerPrivateTempSymbol(); in emitFunctionHeader()
[all …]
H A DAIXException.cpp49 EHInfo = Asm->OutContext.getXCOFFSection(NameStr, EHInfo->getKind(), in emitExceptionInfoTable()
67 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(LSDA, Asm->OutContext), in emitExceptionInfoTable()
71 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(PerSym, Asm->OutContext), in emitExceptionInfoTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYAsmPrinter.cpp41 : AsmPrinter(TM, std::move(Streamer)), MCInstLowering(OutContext, *this) {} in CSKYAsmPrinter()
74 MCSymbol *PCLabel = OutContext.getOrCreateSymbol( in expandTLSLA()
221 const MCExpr *Expr = MCSymbolRefExpr::create(MCSym, OutContext); in emitMachineConstantPoolValue()
225 MCSymbol *PCLabel = OutContext.getOrCreateSymbol( in emitMachineConstantPoolValue()
229 const MCExpr *PCRelExpr = MCSymbolRefExpr::create(PCLabel, OutContext); in emitMachineConstantPoolValue()
233 MCSymbol *DotSym = OutContext.createTempSymbol(); in emitMachineConstantPoolValue()
235 const MCExpr *DotExpr = MCSymbolRefExpr::create(DotSym, OutContext); in emitMachineConstantPoolValue()
236 PCRelExpr = MCBinaryExpr::createSub(PCRelExpr, DotExpr, OutContext); in emitMachineConstantPoolValue()
238 Expr = MCBinaryExpr::createSub(Expr, PCRelExpr, OutContext); in emitMachineConstantPoolValue()
243 Expr, getModifierVariantKind(CCPV->getModifier()), OutContext); in emitMachineConstantPoolValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaAsmPrinter.cpp88 MCSym = OutContext.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in emitMachineConstantPoolValue()
91 MCSym = OutContext.getOrCreateSymbol(SymName); in emitMachineConstantPoolValue()
104 MCSym = OutContext.getOrCreateSymbol(SymName); in emitMachineConstantPoolValue()
107 const MCExpr *Expr = MCSymbolRefExpr::create(MCSym, Spec, OutContext); in emitMachineConstantPoolValue()
128 CFP->getValueAPF().bitcastToAPInt().getSExtValue(), OutContext); in emitMachineConstantPoolEntry()
130 Value = MCConstantExpr::create(CI->getValue().getSExtValue(), OutContext); in emitMachineConstantPoolEntry()
260 const MCExpr *ME = MCSymbolRefExpr::create(Symbol, OutContext); in LowerSymbolOperand()
266 MCConstantExpr::create(Offset, OutContext); in LowerSymbolOperand()
267 ME = MCBinaryExpr::createAdd(ME, OffsetExpr, OutContext); in LowerSymbolOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsAsmPrinter.cpp157 MCContext &OutContext, in emitDirectiveRelocJalr() argument
166 MCSymbol *OffsetLabel = OutContext.createTempSymbol(); in emitDirectiveRelocJalr()
168 MCSymbolRefExpr::create(OffsetLabel, OutContext); in emitDirectiveRelocJalr()
170 MCSymbolRefExpr::create(Callee, OutContext); in emitDirectiveRelocJalr()
247 emitDirectiveRelocJalr(*MI, OutContext, TM, *OutStreamer, *Subtarget); in emitInstruction()
742 TS.setPic(OutContext.getObjectFileInfo()->isPositionIndependent()); in emitStartOfAsmFile()
778 OutContext.getELFSection(SectionName, ELF::SHT_PROGBITS, 0)); in emitStartOfAsmFile()
835 OutStreamer->emitValue(MCSymbolRefExpr::create(MBBSym, OutContext), in emitJumpTableEntry()
841 MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
845 MCSymbolRefExpr::create(MBBSym, OutContext)); in emitJumpTableEntry()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyAsmPrinter.cpp276 auto Signature = OutContext.createWasmSignature(); in getOrCreateWasmSymbol()
323 for (auto &It : OutContext.getSymbols()) { in emitDecls()
348 auto Signature = signatureFromMVTs(OutContext, Results, Params); in emitDecls()
369 Sym->setImportModule(OutContext.allocateString(Name)); in emitDecls()
379 Sym->setImportName(OutContext.allocateString(Name)); in emitDecls()
386 Sym->setExportName(OutContext.allocateString(Name)); in emitDecls()
407 WebAssembly::getOrCreateFunctionTableSymbol(OutContext, Subtarget); in emitEndOfAsmFile()
419 MCConstantExpr::create(Size, OutContext)); in emitEndOfAsmFile()
436 OutContext.getWasmSection(SectionName, SectionKind::getMetadata()); in emitEndOfAsmFile()
476 MCSectionWasm *Producers = OutContext.getWasmSection( in EmitProducerInfo()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVAsmPrinter.cpp522 auto CurSled = OutContext.createTempSymbol("xray_sled_", true); in emitSled()
524 auto Target = OutContext.createTempSymbol(); in emitSled()
526 const MCExpr *TargetExpr = MCSymbolRefExpr::create(Target, OutContext); in emitSled()
628 Sym = OutContext.getOrCreateSymbol(SymName); in LowerHWASAN_CHECK_MEMACCESS()
630 auto Res = MCSymbolRefExpr::create(Sym, OutContext); in LowerHWASAN_CHECK_MEMACCESS()
631 auto Expr = MCSpecifierExpr::create(Res, ELF::R_RISCV_CALL_PLT, OutContext); in LowerHWASAN_CHECK_MEMACCESS()
708 MCSymbol *Pass = OutContext.createTempSymbol(); in LowerKCFI_CHECK()
713 .addExpr(MCSymbolRefExpr::create(Pass, OutContext))); in LowerKCFI_CHECK()
715 MCSymbol *Trap = OutContext.createTempSymbol(); in LowerKCFI_CHECK()
733 OutContext.getOrCreateSymbol("__hwasan_tag_mismatch_v2"); in EmitHwasanMemaccessSymbols()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRAsmPrinter.cpp203 AVRMCInstLower MCInstLowering(OutContext, *this); in emitInstruction()
213 MCContext &Ctx = OutContext; in lowerConstant()
233 MCSymbol *CtorsSym = OutContext.getOrCreateSymbol("__do_global_ctors"); in emitXXStructor()
236 MCSymbol *DtorsSym = OutContext.getOrCreateSymbol("__do_global_dtors"); in emitXXStructor()
274 MCSymbol *DoCopyData = OutContext.getOrCreateSymbol("__do_copy_data"); in doFinalization()
275 MCSymbol *DoClearBss = OutContext.getOrCreateSymbol("__do_clear_bss"); in doFinalization()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchAsmPrinter.cpp252 MCSymbol *BeginOfSled = OutContext.createTempSymbol("xray_sled_begin"); in emitSled()
253 MCSymbol *EndOfSled = OutContext.createTempSymbol("xray_sled_end"); in emitSled()
257 .addExpr(MCSymbolRefExpr::create(EndOfSled, OutContext))); in emitSled()
293 OutContext), in emitJumpTableInfo()
296 MCSymbolRefExpr::create(GetJTISymbol(JTIIdx), OutContext), Size); in emitJumpTableInfo()

12