| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | MCWinCOFFStreamer.cpp | 73 switchSection(getContext().getObjectFileInfo()->getTextSection()); in initSections() 76 switchSection(getContext().getObjectFileInfo()->getDataSection()); in initSections() 79 switchSection(getContext().getObjectFileInfo()->getBSSSection()); in initSections() 82 switchSection(getContext().getObjectFileInfo()->getTextSection()); in initSections() 184 if (getContext().getTargetTriple().getArch() != Triple::x86) in emitCOFFSafeSEH() 191 MCSection *SXData = getContext().getObjectFileInfo()->getSXDataSection(); in emitCOFFSafeSEH() 219 const MCSymbolRefExpr *SRE = MCSymbolRefExpr::create(Symbol, getContext()); in emitCOFFSectionIndex() 230 const MCExpr *MCE = MCSymbolRefExpr::create(Symbol, getContext()); in emitCOFFSecRel32() 234 MCE, MCConstantExpr::create(Offset, getContext()), getContext()); in emitCOFFSecRel32() 249 Symbol, MCSymbolRefExpr::VK_COFF_IMGREL32, getContext()); in emitCOFFImgRel32() [all …]
|
| H A D | MCStreamer.cpp | 63 Section->printSwitchToSection(*Streamer.getContext().getAsmInfo(), in changeSection() 64 Streamer.getContext().getTargetTriple(), OS, in changeSection() 76 Value->print(OS, Streamer.getContext().getAsmInfo()); in emitValue() 81 const MCAsmInfo *MAI = Streamer.getContext().getAsmInfo(); in emitRawBytes() 190 emitValueImpl(MCSymbolRefExpr::create(Sym, getContext()), Size); in emitSymbolValue() 222 emitFill(*MCConstantExpr::create(NumBytes, getContext()), FillValue); in emitFill() 235 return getContext().getDwarfFile(Directory, Filename, FileNo, Checksum, in tryEmitDwarfFileDirective() 244 getContext().setMCLineTableRootFile(CUID, Directory, Filename, Checksum, in emitDwarfFile0Directive() 266 getContext().setCurrentDwarfLoc(FileNo, Line, Column, Flags, Isa, in emitDwarfLocDirective() 271 MCDwarfLineTable &Table = getContext().getMCDwarfLineTable(CUID); in getDwarfLineTableSymbol() [all …]
|
| H A D | MCObjectStreamer.cpp | 116 getContext().reportError(PendingFixup.Fixup.getLoc(), in resolvePendingFixups() 165 if (!getAssembler().getContext().getTargetTriple().isRISCV()) in emitAbsoluteSymbolDiff() 173 if (!getAssembler().getContext().getTargetTriple().isRISCV()) in emitAbsoluteSymbolDiffAsULEB128() 258 getContext().reportError( in emitValueImpl() 272 MCSymbol *Label = getContext().createTempSymbol("cfi"); in emitCFILabel() 279 Frame.Begin = getContext().createTempSymbol(); in emitCFIStartProcImpl() 284 Frame.End = getContext().createTempSymbol(); in emitCFIEndProcImpl() 373 getContext().clearDwarfLocSeen(); in changeSectionImpl() 415 getContext().reportError(Inst.getLoc(), Twine(Sec.getVirtualSectionKind()) + in emitInstruction() 512 MCContext &Context = OS.getContext(); in buildSymbolDiff() [all …]
|
| H A D | MCDwarf.cpp | 48 MCSymbol *Start = S.getContext().createTempSymbol("debug_list_header_start"); in emitListsTableHeaderStart() 49 MCSymbol *End = S.getContext().createTempSymbol("debug_list_header_end"); in emitListsTableHeaderStart() 50 auto DwarfFormat = S.getContext().getDwarfFormat(); in emitListsTableHeaderStart() 60 S.emitInt16(S.getContext().getDwarfVersion()); in emitListsTableHeaderStart() 62 S.emitInt8(S.getContext().getAsmInfo()->getCodePointerSize()); in emitListsTableHeaderStart() 92 if (!MCOS->getContext().getDwarfLocSeen()) in make() 96 MCSymbol *LineSym = MCOS->getContext().createTempSymbol(); in make() 101 const MCDwarfLoc &DwarfLoc = MCOS->getContext().getCurrentDwarfLoc(); in make() 107 MCOS->getContext().clearDwarfLocSeen(); in make() 110 MCOS->getContext() in make() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetObjectFile.cpp | 42 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOT, getContext()); in getTTypeGlobalReference() 43 MCSymbol *PCSym = getContext().createTempSymbol(); in getTTypeGlobalReference() 45 const MCExpr *PC = MCSymbolRefExpr::create(PCSym, getContext()); in getTTypeGlobalReference() 46 return MCBinaryExpr::createSub(Res, PC, getContext()); in getTTypeGlobalReference() 67 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOT, getContext()); in getIndirectSymViaGOTPCRel() 68 MCSymbol *PCSym = getContext().createTempSymbol(); in getIndirectSymViaGOTPCRel() 70 const MCExpr *PC = MCSymbolRefExpr::create(PCSym, getContext()); in getIndirectSymViaGOTPCRel() 71 return MCBinaryExpr::createSub(Res, PC, getContext()); in getIndirectSymViaGOTPCRel()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86TargetObjectFile.cpp | 27 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getTTypeGlobalReference() 28 const MCExpr *Four = MCConstantExpr::create(4, getContext()); in getTTypeGlobalReference() 29 return MCBinaryExpr::createAdd(Res, Four, getContext()); in getTTypeGlobalReference() 50 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getIndirectSymViaGOTPCRel() 51 const MCExpr *Off = MCConstantExpr::create(FinalOff, getContext()); in getIndirectSymViaGOTPCRel() 52 return MCBinaryExpr::createAdd(Res, Off, getContext()); in getIndirectSymViaGOTPCRel() 57 return MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext()); in getDebugThreadLocalSymbol()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AVR/ |
| H A D | AVRAsmPrinter.cpp | 299 MMI->getContext().getOrCreateSymbol(StringRef("__tmp_reg__")), in emitStartOfAsmFile() 300 MCConstantExpr::create(SubTM->getRegTmpIndex(), MMI->getContext())); in emitStartOfAsmFile() 303 MMI->getContext().getOrCreateSymbol(StringRef("__zero_reg__")), in emitStartOfAsmFile() 304 MCConstantExpr::create(SubTM->getRegZeroIndex(), MMI->getContext())); in emitStartOfAsmFile() 307 MMI->getContext().getOrCreateSymbol(StringRef("__SREG__")), in emitStartOfAsmFile() 308 MCConstantExpr::create(SubTM->getIORegSREG(), MMI->getContext())); in emitStartOfAsmFile() 312 MMI->getContext().getOrCreateSymbol(StringRef("__SP_H__")), in emitStartOfAsmFile() 313 MCConstantExpr::create(SubTM->getIORegSPH(), MMI->getContext())); in emitStartOfAsmFile() 316 MMI->getContext().getOrCreateSymbol(StringRef("__SP_L__")), in emitStartOfAsmFile() 317 MCConstantExpr::create(SubTM->getIORegSPL(), MMI->getContext())); in emitStartOfAsmFile() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 24 StatTy = ArrayType::get(Type::getInt8PtrTy(M->getContext()), 2); in SanitizerStatReport() 36 return StructType::get(M->getContext(), {Type::getInt8PtrTy(M->getContext()), in makeModuleStatsTy() 37 Type::getInt32Ty(M->getContext()), in makeModuleStatsTy() 76 PointerType *Int8PtrTy = Type::getInt8PtrTy(M->getContext()); in finish() 77 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish() 78 Type *VoidTy = Type::getVoidTy(M->getContext()); in finish() 95 auto BB = BasicBlock::Create(M->getContext(), "", F); in finish()
|
| H A D | UnifyFunctionExitNodes.cpp | 59 BasicBlock::Create(F.getContext(), "UnifiedUnreachableBlock", &F); in unifyUnreachableBlocks() 60 new UnreachableInst(F.getContext(), UnreachableBlock); in unifyUnreachableBlocks() 83 BasicBlock *NewRetBlock = BasicBlock::Create(F.getContext(), in unifyReturnBlocks() 88 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in unifyReturnBlocks() 94 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in unifyReturnBlocks()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/MCTargetDesc/ |
| H A D | AArch64MachObjectWriter.cpp | 102 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo() 182 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 193 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 200 Asm.getContext().reportError(Fixup.getLoc(), "unknown AArch64 fixup kind!"); in recordRelocation() 212 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 244 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 251 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation() 264 Asm.getContext().reportError( in recordRelocation() 271 Asm.getContext().reportError( in recordRelocation() 279 Asm.getContext().reportError( in recordRelocation() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCELFStreamer.cpp | 73 const SourceMgr *SourceManager = getContext().getSourceManager(); in emitPrefixedInstruction() 148 getContext().getOrCreateSymbol(SymExpr->getSymbol().getName()); in emitGOTToPCRelReloc() 149 const MCExpr *LabelExpr = MCSymbolRefExpr::create(LabelSym, getContext()); in emitGOTToPCRelReloc() 150 const MCExpr *Eight = MCConstantExpr::create(8, getContext()); in emitGOTToPCRelReloc() 153 MCBinaryExpr::createSub(LabelExpr, Eight, getContext()); in emitGOTToPCRelReloc() 154 MCSymbol *CurrentLocation = getContext().createTempSymbol(); in emitGOTToPCRelReloc() 156 MCSymbolRefExpr::create(CurrentLocation, getContext()); in emitGOTToPCRelReloc() 159 MCBinaryExpr::createSub(CurrentLocationExpr, SubExpr, getContext()); in emitGOTToPCRelReloc() 183 getContext().getOrCreateSymbol(SymExpr->getSymbol().getName()); in emitGOTToPCRelLabel()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | TargetInfo.cpp | 88 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), ByVal, in getNaturalAlignIndirect() 94 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg() 105 CGF.getContext().getBuiltinVaListType()->getPointeeType()); in getVAListElementType() 109 if (getContext().isPromotableIntegerType(Ty)) in isPromotableIntegerTypeForABI() 113 if (EIT->getNumBits() < getContext().getTypeSize(getContext().IntTy)) in isPromotableIntegerTypeForABI() 217 ASTContext &ABIInfo::getContext() const { in getContext() function in ABIInfo 218 return CGT.getContext(); in getContext() 250 return getContext().getLangOpts().CPlusPlus; in isZeroLengthBitfieldPermittedInHomogeneousAggregate() 715 auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArgInstr() 790 ASTContext &Context = getContext(); in classifyArgumentType() [all …]
|
| H A D | CGOpenCLRuntime.cpp | 69 uint32_t AddrSpc = CGM.getContext().getTargetAddressSpace( in getPointerType() 70 CGM.getContext().getOpenCLTypeAddrSpace(T)); in getPointerType() 89 CGM.getContext().getTargetAddressSpace( in getPipeType() 90 CGM.getContext().getOpenCLTypeAddrSpace(T))); in getPipeType() 98 CGM.getContext().getTargetAddressSpace( in getSamplerType() 99 CGM.getContext().getOpenCLTypeAddrSpace(T))); in getSamplerType() 107 unsigned TypeSize = CGM.getContext() in getPipeElemSize() 117 unsigned TypeSize = CGM.getContext() in getPipeElemAlign() 127 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic)); in getGenericVoidPointerType()
|
| H A D | CGDebugInfo.cpp | 124 llvm::DILocation::get(DI->LexicalBlockStack.back()->getContext(), 0, 0, in init() 180 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation() 188 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation() 229 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor() 235 PrintingPolicy PP = CGM.getContext().getPrintingPolicy(); in getPrintingPolicy() 320 ASTContext &Context = CGM.getContext(); in getClassName() 357 SourceManager &SM = CGM.getContext().getSourceManager(); in computeChecksum() 392 SourceManager &SM = CGM.getContext().getSourceManager(); in getOrCreateFile() 485 SourceManager &SM = CGM.getContext().getSourceManager(); in getLineNumber() 497 SourceManager &SM = CGM.getContext().getSourceManager(); in getColumnNumber() [all …]
|
| H A D | CGObjC.cpp | 104 getContext().getObjCEncodingForType(ValueType, Str); in EmitObjCBoxedExpr() 126 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral() 137 QualType IdTy(CGM.getContext().getObjCIdType()); in EmitObjCCollectionLiteral() 737 CGF.getContext().VoidTy, in Emit() 820 ASTContext &Context = CGF.getContext(); in emitStructGetterCall() 837 CharUnits size = CGF.getContext().getTypeSizeInChars(ivar->getType()); in emitStructGetterCall() 928 auto TInfo = CGM.getContext().getTypeInfoInChars(ivarType); in PropertyImplStrategy() 994 CGM.getContext().getObjCGCAttrKind(ivarType))) { in PropertyImplStrategy() 1095 args.add(RValue::get(returnAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 1102 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Metadata.cpp | 65 getType()->getContext().pImpl->MetadataAsValues.erase(MD); in ~MetadataAsValue() 118 LLVMContext &Context = getContext(); in handleChangedMetadata() 253 LLVMContext &Context = C.getType()->getContext(); in SalvageDebugInfo() 395 auto &Context = V->getContext(); in get() 413 return V->getContext().pImpl->ValuesAsMetadata.lookup(V); in getIfExists() 419 auto &Store = V->getType()->getContext().pImpl->ValuesAsMetadata; in handleDeletion() 441 LLVMContext &Context = From->getType()->getContext(); in handleRAUW() 903 return uniquifyImpl(SubclassThis, getContext().pImpl->CLASS##s); \ in uniquify() 915 getContext().pImpl->CLASS##s.erase(cast<CLASS>(this)); \ in eraseFromStore() 965 getContext().pImpl->DistinctMDNodes.push_back(this); in storeDistinctInContext() [all …]
|
| H A D | Constants.cpp | 367 return ConstantFP::get(Ty->getContext(), in getNullValue() 377 return ConstantTokenNone::get(Ty->getContext()); in getNullValue() 390 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue() 405 return ConstantInt::get(Ty->getContext(), in getAllOnesValue() 410 return ConstantFP::get(Ty->getContext(), FL); in getAllOnesValue() 855 ConstantInt *TrueC = ConstantInt::getTrue(Ty->getContext()); in getTrue() 863 ConstantInt *FalseC = ConstantInt::getFalse(Ty->getContext()); in getFalse() 898 return get(Ty->getContext(), APInt(Ty->getBitWidth(), V, isSigned)); in get() 910 ConstantInt *C = get(Ty->getContext(), V); in get() 922 return get(Ty->getContext(), APInt(Ty->getBitWidth(), Str, radix)); in get() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | TargetLoweringObjectFileImpl.cpp | 316 auto &C = getContext(); in emitModuleMetadata() 417 return getContext().getOrCreateSymbol(StringRef("DW.ref.") + in getCFIPersonalitySymbol() 429 cast<MCSymbolELF>(getContext().getOrCreateSymbol(NameData)); in emitPersonalityValue() 433 MCSection *Sec = getContext().getELFNamedSection(".data", Label->getName(), in emitPersonalityValue() 439 const MCExpr *E = MCConstantExpr::create(Size, getContext()); in emitPersonalityValue() 463 getTTypeReference(MCSymbolRefExpr::create(SSym, getContext()), in getTTypeGlobalReference() 838 GO->getContext().diagnose(LoweringDiagnosticInfo( in selectExplicitSectionGlobal() 853 return selectExplicitSectionGlobal(GO, Kind, TM, getContext(), getMangler(), in getExplicitSectionGlobal() 936 return selectELFSectionForGlobal(getContext(), GO, Kind, getMangler(), TM, in SelectSectionForGlobal() 949 &F, Kind, TM, getContext(), getMangler(), NextUniqueID, in getUniqueSectionForFunction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/ |
| H A D | MachineOptimizationRemarkEmitter.h | 78 LLVMContext &Ctx = Fn.getContext(); in isEnabled() 104 LLVMContext &Ctx = Fn.getContext(); in isEnabled() 136 LLVMContext &Ctx = Fn.getContext(); in isEnabled() 170 MF.getFunction().getContext().getLLVMRemarkStreamer() || in allowExtraAnalysis() 171 MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled( in allowExtraAnalysis() 183 if (MF.getFunction().getContext().getLLVMRemarkStreamer() || 185 .getContext()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86WinCOFFTargetStreamer.cpp | 83 MCContext &getContext() { return getStreamer().getContext(); } in getContext() function in __anon5bc488b30111::X86WinCOFFTargetStreamer 103 ProcSym->print(OS, getStreamer().getContext().getAsmInfo()); in emitFPOProc() 121 ProcSym->print(OS, getStreamer().getContext().getAsmInfo()); in emitFPOData() 153 getContext().reportError( in checkInFPOPrologue() 162 MCSymbol *Label = getContext().createTempSymbol("cfi", true); in emitFPOLabel() 170 getContext().reportError( in emitFPOProc() 183 getContext().reportError(L, ".cv_fpo_endproc must appear after .cv_proc"); in emitFPOEndProc() 189 getContext().reportError(L, "missing .cv_fpo_endprologue"); in emitFPOEndProc() 243 getContext().reportError( in emitFPOStackAlign() 321 const MCRegisterInfo *MRI = OS.getContext().getRegisterInfo(); in emitFrameDataRecord() [all …]
|
| H A D | X86MachObjectWriter.cpp | 157 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 165 Asm.getContext().reportError( in RecordX86_64Relocation() 181 Asm.getContext().reportError( in RecordX86_64Relocation() 190 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 220 if (!Asm.getContext().getAsmInfo()->isSectionAtomizableBySymbols(Sec)) in RecordX86_64Relocation() 260 Asm.getContext().reportError(Fixup.getLoc(), in RecordX86_64Relocation() 266 Asm.getContext().reportError( in RecordX86_64Relocation() 286 Asm.getContext().reportError( in RecordX86_64Relocation() 314 Asm.getContext().reportError( in RecordX86_64Relocation() 333 Asm.getContext().reportError( in RecordX86_64Relocation() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXImageOptimizer.cpp | 96 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler() 100 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler() 113 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface() 119 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface() 131 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture() 138 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture()
|
| /openbsd-src/gnu/llvm/llvm/examples/BrainF/ |
| H A D | BrainFDriver.cpp | 76 Type::getInt32Ty(mod->getContext()), in addMainFunction() 77 {Type::getInt32Ty(mod->getContext()), in addMainFunction() 78 Type::getInt8Ty(mod->getContext())->getPointerTo()->getPointerTo()}, in addMainFunction() 92 BasicBlock *bb = BasicBlock::Create(mod->getContext(), "main.0", main_func); in addMainFunction() 102 ReturnInst::Create(mod->getContext(), in addMainFunction() 103 ConstantInt::get(mod->getContext(), APInt(32, 0)), bb); in addMainFunction()
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/MCParser/ |
| H A D | MCAsmParserExtension.cpp | 54 MCSymbol *FromSym = getContext().getOrCreateSymbol(From); in ParseDirectiveCGProfile() 55 MCSymbol *ToSym = getContext().getOrCreateSymbol(To); in ParseDirectiveCGProfile() 58 MCSymbolRefExpr::create(FromSym, MCSymbolRefExpr::VK_None, getContext(), in ParseDirectiveCGProfile() 60 MCSymbolRefExpr::create(ToSym, MCSymbolRefExpr::VK_None, getContext(), in ParseDirectiveCGProfile()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/Mips/ |
| H A D | MipsTargetObjectFile.cpp | 48 SmallDataSection = getContext().getELFSection( in Initialize() 52 SmallBSSSection = getContext().getELFSection(".sbss", ELF::SHT_NOBITS, in Initialize() 191 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None, getContext()); in getDebugThreadLocalSymbol() 193 Expr, MCConstantExpr::create(0x8000, getContext()), getContext()); in getDebugThreadLocalSymbol() 194 return MipsMCExpr::create(MipsMCExpr::MEK_DTPREL, Expr, getContext()); in getDebugThreadLocalSymbol()
|