| /openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/ |
| H A D | SparcAsmPrinter.cpp | 74 MCSymbol *Sym, MCContext &OutContext) { in createSparcMCOperand() argument 76 OutContext); in createSparcMCOperand() 77 const SparcMCExpr *expr = SparcMCExpr::create(Kind, MCSym, OutContext); in createSparcMCOperand() 82 MCContext &OutContext) { in createPCXCallOP() argument 83 return createSparcMCOperand(SparcMCExpr::VK_Sparc_WDISP30, Label, OutContext); in createPCXCallOP() 89 MCContext &OutContext) in createPCXRelExprOp() argument 91 const MCSymbolRefExpr *GOT = MCSymbolRefExpr::create(GOTLabel, OutContext); in createPCXRelExprOp() 93 OutContext); in createPCXRelExprOp() 95 OutContext); in createPCXRelExprOp() 97 const MCBinaryExpr *Sub = MCBinaryExpr::createSub(Cur, Start, OutContext); in createPCXRelExprOp() [all …]
|
| H A D | SparcMCInstLower.cpp | 61 AP.OutContext); in LowerSymbolOperand() 63 AP.OutContext); in LowerSymbolOperand()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | FaultMaps.cpp | 31 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/ |
| H A D | PPCAsmPrinter.cpp | 538 const MCExpr *SymVar = MCSymbolRefExpr::create(MOSymbol, OutContext); in LowerPATCHPOINT() 602 MCSymbol *TlsGetAddr = createMCSymbolForTlsGetAddr(OutContext); in EmitTlsCall() 604 TlsGetAddr, MCSymbolRefExpr::VK_None, OutContext); in EmitTlsCall() 609 MCSymbol *TlsGetAddr = OutContext.getOrCreateSymbol("__tls_get_addr"); in EmitTlsCall() 615 MCSymbolRefExpr::create(TlsGetAddr, Kind, OutContext); in EmitTlsCall() 621 TlsRef, MCConstantExpr::create(32768, OutContext), OutContext); in EmitTlsCall() 625 const MCExpr *SymVar = MCSymbolRefExpr::create(MOSymbol, VK, OutContext); in EmitTlsCall() 699 Expr, MCConstantExpr::create(-Adjustment, OutContext), OutContext); in emitInstruction() 749 OutContext.getOrCreateSymbol(StringRef("_GLOBAL_OFFSET_TABLE_")); in emitInstruction() 753 OutContext), in emitInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/ |
| H A D | HexagonAsmPrinter.cpp | 207 Sym = AP.OutContext.getOrCreateSymbol(Twine(symbolName)); in smallData() 235 Sym = AP.OutContext.getOrCreateSymbol(Twine(LitaName)); in smallData() 291 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction() 298 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction() 305 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction() 312 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext); in HexagonProcessInstruction() 319 const MCConstantExpr *C255 = MCConstantExpr::create(255, OutContext); in HexagonProcessInstruction() 340 MCSymbolRefExpr::create(Sym, OutContext))); in HexagonProcessInstruction() 357 MCSymbolRefExpr::create(Sym, OutContext), OutContext))); in HexagonProcessInstruction() 444 const MCExpr *One = MCConstantExpr::create(1, OutContext); in HexagonProcessInstruction() [all …]
|
| H A D | HexagonMCInstLower.cpp | 43 MCContext &MC = Printer.OutContext; in GetSymbolRef() 120 MCInst *MCI = AP.OutContext.createMCInst(); in HexagonLowerToMC() 147 AP.OutContext), in HexagonLowerToMC() 148 AP.OutContext); in HexagonLowerToMC() 155 MCConstantExpr::create(MO.getImm(), AP.OutContext), AP.OutContext); in HexagonLowerToMC() 162 AP.OutContext); in HexagonLowerToMC() 163 Expr = HexagonMCExpr::create(Expr, AP.OutContext); in HexagonLowerToMC() 190 HexagonMCInstrInfo::extendIfNeeded(AP.OutContext, MCII, MCB, *MCI); in HexagonLowerToMC()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/VE/ |
| H A D | VEAsmPrinter.cpp | 72 MCContext &OutContext) { in createVEMCOperand() argument 73 const MCSymbolRefExpr *MCSym = MCSymbolRefExpr::create(Sym, OutContext); in createVEMCOperand() 74 const VEMCExpr *expr = VEMCExpr::create(Kind, MCSym, OutContext); in createVEMCOperand() 79 MCSymbol *GOTLabel, MCContext &OutContext) { in createGOTRelExprOp() argument 80 const MCSymbolRefExpr *GOT = MCSymbolRefExpr::create(GOTLabel, OutContext); in createGOTRelExprOp() 81 const VEMCExpr *expr = VEMCExpr::create(Kind, GOT, OutContext); in createGOTRelExprOp() 171 MCOperand &RD, MCContext &OutContext, in emitHiLo() argument 174 MCOperand hi = createVEMCOperand(HiKind, GOTSym, OutContext); in emitHiLo() 175 MCOperand lo = createVEMCOperand(LoKind, GOTSym, OutContext); in emitHiLo() 185 OutContext.getOrCreateSymbol(Twine("_GLOBAL_OFFSET_TABLE_")); in lowerGETGOTAndEmitMCInsts() [all …]
|
| H A D | VEMCInstLower.cpp | 33 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 = VEMCExpr::create(Kind, Expr, AP.OutContext); in LowerSymbolOperand()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | ARMMCInstLower.cpp | 45 MCSymbolRefExpr::create(Symbol, SymbolVariant, OutContext); in GetSymbolRef() 53 MCSymbolRefExpr::create(Symbol, SymbolVariant, OutContext); in GetSymbolRef() 54 Expr = ARMMCExpr::createLower16(Expr, OutContext); in GetSymbolRef() 58 MCSymbolRefExpr::create(Symbol, SymbolVariant, OutContext); in GetSymbolRef() 59 Expr = ARMMCExpr::createUpper16(Expr, OutContext); in GetSymbolRef() 66 OutContext), in GetSymbolRef() 67 OutContext); in GetSymbolRef() 88 MO.getMBB()->getSymbol(), OutContext)); in lowerOperand() 198 auto CurSled = OutContext.createTempSymbol("xray_sled_", true); in EmitSled() 200 auto Target = OutContext.createTempSymbol(); in EmitSled()
|
| H A D | ARMAsmPrinter.cpp | 79 OutContext.getOrCreateSymbol("__acle_se_" + CurrentFnSym->getName()); in emitFunctionEntryLabel() 99 OutContext); in emitXXStructor() 254 return OutContext.getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in GetCPISymbol() 267 return OutContext.getOrCreateSymbol(Name); in GetARMJTIPICJumpTableLabel() 879 MCSymbol *MCSym = OutContext.getOrCreateSymbol(Name); in GetARMGVSymbol() 952 OutContext); in emitMachineConstantPoolValue() 957 ACPV->getLabelId(), OutContext); in emitMachineConstantPoolValue() 958 const MCExpr *PCRelExpr = MCSymbolRefExpr::create(PCLabel, OutContext); in emitMachineConstantPoolValue() 962 OutContext), in emitMachineConstantPoolValue() 963 OutContext); in emitMachineConstantPoolValue() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | WasmException.cpp | 37 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 D | WinException.cpp | 56 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGEHContSection()); in endModule() 270 MCSymbol *FuncInfoXData = Asm->OutContext.getOrCreateSymbol( in endFuncletImpl() 306 return MCConstantExpr::create(0, Asm->OutContext); in create32bitRef() 310 Asm->OutContext); in create32bitRef() 315 return MCConstantExpr::create(0, Asm->OutContext); in create32bitRef() 321 Asm->OutContext); in getLabel() 326 MCConstantExpr::create(1, Asm->OutContext), in getLabelPlusOne() 327 Asm->OutContext); in getLabelPlusOne() 333 MCSymbolRefExpr::create(OffsetOf, Asm->OutContext), in getOffset() 334 MCSymbolRefExpr::create(OffsetFrom, Asm->OutContext), Asm->OutContext); in getOffset() [all …]
|
| H A D | WinCFGuard.cpp | 80 return Asm->OutContext.lookupSymbol(Twine("__imp_") + Sym->getName()); in lookupImpSymbol() 110 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGFIDsSection()); in endModule() 115 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGIATsSection()); in endModule() 121 OS.switchSection(Asm->OutContext.getObjectFileInfo()->getGLJMPSection()); in endModule()
|
| H A D | AIXException.cpp | 48 EHInfo = Asm->OutContext.getXCOFFSection(NameStr, EHInfo->getKind(), in emitExceptionInfoTable() 66 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(LSDA, Asm->OutContext), in emitExceptionInfoTable() 70 Asm->OutStreamer->emitValue(MCSymbolRefExpr::create(PerSym, Asm->OutContext), in emitExceptionInfoTable()
|
| H A D | AsmPrinter.cpp | 252 AddrLabelSymbols = std::make_unique<AddrLabelMap>(OutContext); in getAddrLabelSymbolToEmit() 350 OutContext(Streamer->getContext()), OutStreamer(std::move(Streamer)), in AsmPrinter() 429 .Initialize(OutContext, TM); in doInitialization() 706 OutContext.reportError(SMLoc(), in emitGlobalVariable() 717 OutContext.reportError(SMLoc(), "symbol '" + Twine(GVSym->getName()) + in emitGlobalVariable() 802 OutContext.getOrCreateSymbol(GVSym->getName() + Twine("$tlv$init")); in emitGlobalVariable() 858 MCConstantExpr::create(Size, OutContext)); in emitGlobalVariable() 925 MCSymbol *PrefixSym = OutContext.createLinkerPrivateTempSymbol(); in emitFunctionHeader() 952 OutContext.createLinkerPrivateTempSymbol(); in emitFunctionHeader() 984 MCSymbol *CurPos = OutContext.createTempSymbol(); in emitFunctionHeader() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/ |
| H A D | RISCVAsmPrinter.cpp | 254 Sym = OutContext.getOrCreateSymbol(SymName); in LowerHWASAN_CHECK_MEMACCESS() 256 auto Res = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None, OutContext); in LowerHWASAN_CHECK_MEMACCESS() 257 auto Expr = RISCVMCExpr::create(Res, RISCVMCExpr::VK_RISCV_CALL, OutContext); in LowerHWASAN_CHECK_MEMACCESS() 273 OutContext.getOrCreateSymbol("__hwasan_tag_mismatch_v2"); in EmitHwasanMemaccessSymbols() 281 MCSymbolRefExpr::create(HwasanTagMismatchV2Sym, OutContext); in EmitHwasanMemaccessSymbols() 283 RISCVMCExpr::VK_RISCV_CALL, OutContext); in EmitHwasanMemaccessSymbols() 292 OutStreamer->switchSection(OutContext.getELFSection( in EmitHwasanMemaccessSymbols() 324 MCSymbol *HandleMismatchOrPartialSym = OutContext.createTempSymbol(); in EmitHwasanMemaccessSymbols() 331 OutContext)), in EmitHwasanMemaccessSymbols() 333 MCSymbol *ReturnSym = OutContext.createTempSymbol(); in EmitHwasanMemaccessSymbols() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | MipsAsmPrinter.cpp | 158 MCContext &OutContext, in emitDirectiveRelocJalr() argument 167 MCSymbol *OffsetLabel = OutContext.createTempSymbol(); in emitDirectiveRelocJalr() 169 MCSymbolRefExpr::create(OffsetLabel, OutContext); in emitDirectiveRelocJalr() 171 MCSymbolRefExpr::create(Callee, OutContext); in emitDirectiveRelocJalr() 246 MCSymbol *PCSym = OutContext.createTempSymbol(); in emitInstruction() 247 MCSymbol *FuncSym = OutContext.lookupSymbol(MI->getMF()->getName()); in emitInstruction() 266 .addExpr(MCSymbolRefExpr::create(ReturnSym, OutContext))); in emitInstruction() 293 MCSymbolRefExpr::create(PCSym, OutContext), in emitInstruction() 294 MCSymbolRefExpr::create(FuncSym, OutContext), in emitInstruction() 295 OutContext), in emitInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/ |
| H A D | CSKYAsmPrinter.cpp | 41 : AsmPrinter(TM, std::move(Streamer)), MCInstLowering(OutContext, *this) {} in CSKYAsmPrinter() 74 MCSymbol *PCLabel = OutContext.getOrCreateSymbol( in expandTLSLA() 221 MCSymbolRefExpr::create(MCSym, MCSymbolRefExpr::VK_None, 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 OutContext); in emitMachineConstantPoolValue()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64AsmPrinter.cpp | 79 : AsmPrinter(TM, std::move(Streamer)), MCInstLowering(OutContext, *this), in AArch64AsmPrinter() 310 auto CurSled = OutContext.createTempSymbol("xray_sled_", true); in emitSled() 312 auto Target = OutContext.createTempSymbol(); in emitSled() 395 MCSymbol *Pass = OutContext.createTempSymbol(); in LowerKCFI_CHECK() 399 .addExpr(MCSymbolRefExpr::create(Pass, OutContext))); in LowerKCFI_CHECK() 443 Sym = OutContext.getOrCreateSymbol(SymName); in LowerHWASAN_CHECK_MEMACCESS() 448 .addExpr(MCSymbolRefExpr::create(Sym, OutContext))); in LowerHWASAN_CHECK_MEMACCESS() 462 OutContext.getOrCreateSymbol("__hwasan_tag_mismatch"); in emitHwasanMemaccessSymbols() 464 OutContext.getOrCreateSymbol("__hwasan_tag_mismatch_v2"); in emitHwasanMemaccessSymbols() 467 MCSymbolRefExpr::create(HwasanTagMismatchV1Sym, OutContext); in emitHwasanMemaccessSymbols() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZAsmPrinter.cpp | 538 MCSymbol *DotSym = OutContext.createTempSymbol(); in emitInstruction() 541 const MCSymbolRefExpr *Expr = MCSymbolRefExpr::create(DotSym, OutContext); in emitInstruction() 542 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext); in emitInstruction() 544 .addExpr(MCBinaryExpr::createAdd(Expr, ConstExpr, OutContext)); in emitInstruction() 551 MCSymbol *DotSym = OutContext.createTempSymbol(); in emitInstruction() 554 const MCSymbolRefExpr *Expr = MCSymbolRefExpr::create(DotSym, OutContext); in emitInstruction() 555 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext); in emitInstruction() 559 .addExpr(MCBinaryExpr::createAdd(Expr, ConstExpr, OutContext)); in emitInstruction() 593 TS->EXRLTargets2Sym[ET_STI] = DotSym = OutContext.createTempSymbol(); in emitInstruction() 594 const MCSymbolRefExpr *Dot = MCSymbolRefExpr::create(DotSym, OutContext); in emitInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AVR/ |
| H A D | AVRAsmPrinter.cpp | 201 AVRMCInstLower MCInstLowering(OutContext, *this); in emitInstruction() 209 MCContext &Ctx = OutContext; in lowerConstant() 229 MCSymbol *CtorsSym = OutContext.getOrCreateSymbol("__do_global_ctors"); in emitXXStructor() 232 MCSymbol *DtorsSym = OutContext.getOrCreateSymbol("__do_global_dtors"); in emitXXStructor() 270 MCSymbol *DoCopyData = OutContext.getOrCreateSymbol("__do_copy_data"); in doFinalization() 271 MCSymbol *DoClearBss = OutContext.getOrCreateSymbol("__do_clear_bss"); in doFinalization()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUMCInstLower.h | 47 MCContext &OutContext) { in lowerAddrSpaceCast() argument 63 OutContext); in lowerAddrSpaceCast()
|
| H A D | R600MCInstLower.cpp | 52 R600MCInstLower MCInstLowering(OutContext, STI, *this); in emitInstruction() 76 if (const MCExpr *E = lowerAddrSpaceCast(TM, CV, OutContext)) in lowerConstant()
|
| H A D | AMDGPUMCInstLower.cpp | 164 AMDGPUMCInstLower MCInstLowering(OutContext, STI, *this); in lowerOperand() 180 if (const MCExpr *E = lowerAddrSpaceCast(TM, CV, OutContext)) in lowerConstant() 194 AMDGPUMCInstLower MCInstLowering(OutContext, STI, *this); in emitInstruction() 291 *STI.getInstrInfo(), OutContext)); in emitInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86MCInstLower.cpp | 1382 MCSymbol *Pass = OutContext.createTempSymbol(); in LowerKCFI_CHECK() 1385 .addExpr(MCSymbolRefExpr::create(Pass, OutContext)) in LowerKCFI_CHECK() 1388 MCSymbol *Trap = OutContext.createTempSymbol(); in LowerKCFI_CHECK() 1425 OutContext.getOrCreateSymbol(SymName), OutContext))); in LowerASAN_CHECK_MEMACCESS() 1585 auto CurSled = OutContext.createTempSymbol("xray_event_sled_", true); in LowerPATCHABLE_EVENT_CALL() 1631 auto TSym = OutContext.getOrCreateSymbol("__xray_CustomEvent"); in LowerPATCHABLE_EVENT_CALL() 1681 auto CurSled = OutContext.createTempSymbol("xray_typed_event_sled_", true); in LowerPATCHABLE_TYPED_EVENT_CALL() 1734 auto TSym = OutContext.getOrCreateSymbol("__xray_TypedEvent"); in LowerPATCHABLE_TYPED_EVENT_CALL() 1784 auto CurSled = OutContext.createTempSymbol("xray_sled_", true); in LowerPATCHABLE_FUNCTION_ENTER() 1814 auto CurSled = OutContext.createTempSymbol("xray_sled_", true); in LowerPATCHABLE_RET() [all …]
|