/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
H A D | ELFObjcopy.cpp | 157 static std::unique_ptr<Writer> createELFWriter(const CommonConfig &Config, in createELFWriter() argument 163 return std::make_unique<ELFWriter<ELF32LE>>(Obj, Out, !Config.StripSections, in createELFWriter() 164 Config.OnlyKeepDebug); in createELFWriter() 166 return std::make_unique<ELFWriter<ELF64LE>>(Obj, Out, !Config.StripSections, in createELFWriter() 167 Config.OnlyKeepDebug); in createELFWriter() 169 return std::make_unique<ELFWriter<ELF32BE>>(Obj, Out, !Config.StripSections, in createELFWriter() 170 Config.OnlyKeepDebug); in createELFWriter() 172 return std::make_unique<ELFWriter<ELF64BE>>(Obj, Out, !Config.StripSections, in createELFWriter() 173 Config.OnlyKeepDebug); in createELFWriter() 178 static std::unique_ptr<Writer> createWriter(const CommonConfig &Config, in createWriter() argument [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | allocator_config.h | 72 template <typename Config> using PrimaryT = SizeClassAllocator64<Config>; 74 template <typename Config> using PrimaryT = SizeClassAllocator32<Config>; 86 template <typename Config> using CacheT = MapAllocatorCache<Config>; 89 template <typename Config> using SecondaryT = MapAllocator<Config>; 117 template <typename Config> using PrimaryT = SizeClassAllocator64<Config>; 119 template <typename Config> using PrimaryT = SizeClassAllocator32<Config>; 131 template <typename Config> using CacheT = MapAllocatorCache<Config>; 134 template <typename Config> using SecondaryT = MapAllocator<Config>; 161 template <typename Config> using PrimaryT = SizeClassAllocator64<Config>; 164 template <typename Config> using CacheT = MapAllocatorNoCache<Config>; [all …]
|
H A D | size_class_map.h | 25 template <typename Config> struct SizeClassMapBase { 30 if (Config::MaxBytesCachedLog > 31 || Config::MaxSizeLog > 31) in getMaxCachedHint() 31 N = static_cast<u32>((1UL << Config::MaxBytesCachedLog) / Size); in getMaxCachedHint() 33 N = (1U << Config::MaxBytesCachedLog) / static_cast<u32>(Size); in getMaxCachedHint() 35 // Note that Config::MaxNumCachedHint is u16 so the result is guaranteed to in getMaxCachedHint() 37 return static_cast<u16>(Max(1U, Min<u32>(Config::MaxNumCachedHint, N))); in getMaxCachedHint() 60 template <typename Config> 61 class FixedSizeClassMap : public SizeClassMapBase<Config> { 62 typedef SizeClassMapBase<Config> Bas [all...] |
H A D | secondary.h | 51 template <typename Config> static uptr addHeaderTag(uptr Ptr) { in addHeaderTag() 52 if (allocatorSupportsMemoryTagging<Config>()) in addHeaderTag() 57 template <typename Config> static Header *getHeader(uptr Ptr) { in getHeader() 58 return reinterpret_cast<Header *>(addHeaderTag<Config>(Ptr)) - 1; in getHeader() 61 template <typename Config> static Header *getHeader(const void *Ptr) { in getHeader() 62 return getHeader<Config>(reinterpret_cast<uptr>(Ptr)); in getHeader() 89 template <typename Config> class MapAllocatorNoCache { 119 template <typename Config> 133 if (useMemoryTagging<Config>(Options) && isAligned(TaggedSize, PageSize)) { in mapSecondary() 141 (useMemoryTagging<Config>(Options) ? MAP_MEMTAG : 0) | Flags; in mapSecondary() [all …]
|
H A D | allocator_config_wrapper.h | 48 template <typename Config, typename = TYPE> struct NAME##State { \ 51 template <typename Config> \ 53 Config, typename assertSameType<decltype(Config::MEMBER), TYPE>::type> { \ 55 return Config::MEMBER; \ 60 template <typename Config, typename Void = void> struct NAME##Type { \ 64 template <typename Config> \ 65 struct NAME##Type<Config, \ 66 typename voidAdaptor<typename Config::MEMBER>::type> { \ 68 using NAME = typename Config::MEMBER; \
|
/freebsd/contrib/libfido2/windows/ |
H A D | release.ps1 | 10 $Config = 'Release' variable 17 ./build.ps1 -Arch ${Arch} -Type ${Type} -Config ${Config} 24 "${OUTPUT}/pkg/${InstallPrefix}/${Config}/v${SDK}/${Type}" 52 Copy-Item "${SRC}\${LIBRESSL}\crypto\crypto_obj.dir\${Config}\crypto_obj.pdb" ` in Package-PDBs() 54 Copy-Item "${SRC}\${LIBCBOR}\src\cbor.dir\${Config}\vc${SDK}.pdb" ` in Package-PDBs() 56 Copy-Item "${SRC}\${ZLIB}\zlib.dir\${Config}\vc${SDK}.pdb" ` in Package-PDBs() 58 Copy-Item "${SRC}\src\fido2_shared.dir\${Config}\vc${SDK}.pdb" ` in Package-PDBs() 63 Copy-Item "${SRC}\${LIBRESSL}\crypto\crypto_obj.dir\${Config}\crypto_obj.pdb" ` in Package-StaticPDBs() 65 Copy-Item "${SRC}\${LIBCBOR}\src\${Config}\cbor.pdb" ` in Package-StaticPDBs() 67 Copy-Item "${SRC}\${ZLIB}\${Config}\zlibstatic.pdb" ` in Package-StaticPDBs() [all …]
|
H A D | build.ps1 | 12 [string]$Config = "Release", variable 85 Write-Host "Config: $Config" variable 151 & $CMake --build . --config ${Config} --verbose; ExitOnError 152 & $CMake --build . --config ${Config} --target install --verbose; ` 170 & $CMake --build . --config ${Config} --verbose; ExitOnError 171 & $CMake --build . --config ${Config} --target install --verbose; ` 189 & $CMake --build . --config ${Config} --verbose; ExitOnError 190 & $CMake --build . --config ${Config} --target install --verbose; ` 212 -DCMAKE_BUILD_TYPE="${Config}" ` [all...] |
H A D | cygwin.ps1 | 8 [string]$Config = "Release" variable 34 Write-Host "Config: $Config" variable 68 cmake "-DCMAKE_BUILD_TYPE=${Config}" -B "build-${Config}" 69 make -C "build-${Config}" 70 make -C "build-${Config}" regress
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
H A D | COFFObjcopy.cpp | 157 static Error handleArgs(const CommonConfig &Config, in handleArgs() argument 159 for (StringRef Op : Config.DumpSection) { in handleArgs() 166 Obj.removeSections([&Config](const Section &Sec) { in handleArgs() 169 if (!Config.OnlySection.empty() && !Config.OnlySection.matches(Sec.Name)) in handleArgs() 172 if (Config.StripDebug || Config.StripAll || Config.StripAllGNU || in handleArgs() 173 Config.DiscardMode == DiscardType::All || Config in handleArgs() 322 executeObjcopyOnBinary(const CommonConfig & Config,const COFFConfig & COFFConfig,COFFObjectFile & In,raw_ostream & Out) executeObjcopyOnBinary() argument [all...] |
/freebsd/contrib/llvm-project/llvm/tools/llvm-objcopy/ |
H A D | llvm-objcopy.cpp | 115 const CommonConfig &Config = ConfigMgr.getCommonConfig(); in executeObjcopyOnRawBinary() local 116 switch (Config.OutputFormat) { in executeObjcopyOnRawBinary() 129 return elf::executeObjcopyOnRawBinary(Config, *ELFConfig, In, Out); in executeObjcopyOnRawBinary() 139 CommonConfig &Config = ConfigMgr.Common; in executeObjcopy() local 142 FilePermissionsApplier::create(Config.InputFilename); in executeObjcopy() 151 if (Config.InputFormat == FileFormat::Binary || in executeObjcopy() 152 Config.InputFormat == FileFormat::IHex) { in executeObjcopy() 154 MemoryBuffer::getFileOrSTDIN(Config.InputFilename); in executeObjcopy() 156 return createFileError(Config.InputFilename, BufOrErr.getError()); in executeObjcopy() 159 if (Config.InputFormat == FileFormat::Binary) in executeObjcopy() [all …]
|
H A D | ObjcopyOptions.cpp | 646 CommonConfig &Config = ConfigMgr.Common; in parseObjcopyOptions() local 650 Config.InputFilename = Positional[0]; in parseObjcopyOptions() 651 Config.OutputFilename = Positional[Positional.size() == 1 ? 0 : 1]; in parseObjcopyOptions() 682 Config.InputFormat = StringSwitch<FileFormat>(InputFormat) in parseObjcopyOptions() 746 Config.OutputFormat = StringSwitch<FileFormat>(OutputFormat) in parseObjcopyOptions() 751 if (Config.OutputFormat == FileFormat::Unspecified) { in parseObjcopyOptions() 753 Config.OutputFormat = Config.InputFormat; in parseObjcopyOptions() 759 Config.OutputFormat = Target->Format; in parseObjcopyOptions() 760 Config.OutputArch = Target->Machine; in parseObjcopyOptions() 765 Config.CompressionType = StringSwitch<DebugCompressionType>(A->getValue()) in parseObjcopyOptions() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/ |
H A D | WasmObjcopy.cpp | 60 static void removeSections(const CommonConfig &Config, Object &Obj) { in removeSections() argument 64 if (!Config.ToRemove.empty()) { in removeSections() 65 RemovePred = [&Config](const Section &Sec) { in removeSections() 66 return Config.ToRemove.matches(Sec.Name); in removeSections() 70 if (Config.StripDebug) { in removeSections() 76 if (Config.StripAll) { in removeSections() 83 if (Config.OnlyKeepDebug) { in removeSections() 84 RemovePred = [&Config](const Section &Sec) { in removeSections() 87 return Config.ToRemove.matches(Sec.Name) || !isDebugSection(Sec); in removeSections() 91 if (!Config in removeSections() 112 handleArgs(const CommonConfig & Config,Object & Obj) handleArgs() argument 144 executeObjcopyOnBinary(const CommonConfig & Config,const WasmConfig &,object::WasmObjectFile & In,raw_ostream & Out) executeObjcopyOnBinary() argument [all...] |
/freebsd/contrib/llvm-project/llvm/tools/llvm-dwarfutil/ |
H A D | llvm-dwarfutil.cpp | 165 static Error setConfigToAddNewDebugSections(objcopy::ConfigManager &Config, in validateAndSetOptions() 178 Config.Common.AddSection.emplace_back(objcopy::NewSectionInfo( in setConfigToAddNewDebugSections() 252 objcopy::ConfigManager Config; 254 Config.Common.InputFilename = Opts.InputFileName; in current_pos() 255 Config.Common.OutputFilename = OutputFilename; 256 Config.Common.OnlyKeepDebug = true; 260 Config.Common.OutputFilename, [&](raw_ostream &OutFile) -> Error { in saveSeparateDebugInfo() 262 if (Error Err = objcopy::executeObjcopyOnBinary(Config, InputFile, in saveSeparateDebugInfo() 276 objcopy::ConfigManager Config; in saveSeparateDebugInfo() 277 Config in saveSeparateDebugInfo() 172 setConfigToAddNewDebugSections(objcopy::ConfigManager & Config,ObjectFile & ObjFile) setConfigToAddNewDebugSections() argument 259 objcopy::ConfigManager Config; saveSeparateDebugInfo() local 283 objcopy::ConfigManager Config; saveNonDebugInfo() local 320 addSectionsFromLinkedData(objcopy::ConfigManager & Config,ObjectFile & InputFile,DebugInfoBits & LinkedDebugInfoBits) addSectionsFromLinkedData() argument 365 objcopy::ConfigManager Config; saveSeparateLinkedDebugInfo() local 396 objcopy::ConfigManager Config; saveSingleLinkedDebugInfo() local 436 objcopy::ConfigManager Config; saveCopyOfFile() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ |
H A D | ObjCopy.cpp | 38 Error executeObjcopyOnBinary(const MultiFormatConfig &Config, in executeObjcopyOnBinary() argument 41 Expected<const ELFConfig &> ELFConfig = Config.getELFConfig(); in executeObjcopyOnBinary() 45 return elf::executeObjcopyOnBinary(Config.getCommonConfig(), *ELFConfig, in executeObjcopyOnBinary() 49 Expected<const COFFConfig &> COFFConfig = Config.getCOFFConfig(); in executeObjcopyOnBinary() 53 return coff::executeObjcopyOnBinary(Config.getCommonConfig(), *COFFConfig, in executeObjcopyOnBinary() 57 Expected<const MachOConfig &> MachOConfig = Config.getMachOConfig(); in executeObjcopyOnBinary() 61 return macho::executeObjcopyOnBinary(Config.getCommonConfig(), *MachOConfig, in executeObjcopyOnBinary() 67 Config, *MachOUniversalBinary, Out); in executeObjcopyOnBinary() 70 Expected<const WasmConfig &> WasmConfig = Config.getWasmConfig(); in executeObjcopyOnBinary() 74 return objcopy::wasm::executeObjcopyOnBinary(Config.getCommonConfig(), in executeObjcopyOnBinary() [all …]
|
H A D | Archive.cpp | 24 createNewArchiveMembers(const MultiFormatConfig &Config, const Archive &Ar) { in createNewArchiveMembers() argument 40 if (Error E = executeObjcopyOnBinary(Config, *ChildOrErr->get(), MemStream)) in createNewArchiveMembers() 44 Child, Config.getCommonConfig().DeterministicArchives); in createNewArchiveMembers() 54 return createFileError(Config.getCommonConfig().InputFilename, in createNewArchiveMembers() 98 Error executeObjcopyOnArchive(const MultiFormatConfig &Config, in executeObjcopyOnArchive() 101 createNewArchiveMembers(Config, Ar); in executeObjcopyOnArchive() 104 const CommonConfig &CommonConfig = Config.getCommonConfig(); in executeObjcopyOnArchive() 97 executeObjcopyOnArchive(const MultiFormatConfig & Config,const object::Archive & Ar) executeObjcopyOnArchive() argument
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOObjcopy.cpp | 55 static Error removeSections(const CommonConfig &Config, Object &Obj) { in removeSections() argument 60 if (!Config.ToRemove.empty()) { in removeSections() 61 RemovePred = [&Config, RemovePred](const std::unique_ptr<Section> &Sec) { in removeSections() 62 return Config.ToRemove.matches(Sec->CanonicalName); in removeSections() 66 if (Config.StripAll || Config.StripDebug) { in removeSections() 76 if (!Config.OnlySection.empty()) { in removeSections() 78 RemovePred = [&Config](const std::unique_ptr<Section> &Sec) { in removeSections() 79 return !Config.OnlySection.matches(Sec->CanonicalName); in removeSections() 93 static void updateAndRemoveSymbols(const CommonConfig &Config, in updateAndRemoveSymbols() argument 395 handleArgs(const CommonConfig & Config,const MachOConfig & MachOConfig,Object & Obj) handleArgs() argument 440 executeObjcopyOnBinary(const CommonConfig & Config,const MachOConfig & MachOConfig,object::MachOObjectFile & In,raw_ostream & Out) executeObjcopyOnBinary() argument 478 executeObjcopyOnMachOUniversalBinary(const MultiFormatConfig & Config,const MachOUniversalBinary & In,raw_ostream & Out) executeObjcopyOnMachOUniversalBinary() argument [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/ |
H A D | DIPrinter.h | 74 PrinterConfig Config; variable 89 PlainPrinterBase(raw_ostream &OS, ErrorHandler EH, PrinterConfig &Config) in PlainPrinterBase() argument 90 : OS(OS), ErrHandler(EH), Config(Config) {} in PlainPrinterBase() 114 LLVMPrinter(raw_ostream &OS, ErrorHandler EH, PrinterConfig &Config) in LLVMPrinter() argument 115 : PlainPrinterBase(OS, EH, Config) {} in LLVMPrinter() 123 GNUPrinter(raw_ostream &OS, ErrorHandler EH, PrinterConfig &Config) in GNUPrinter() argument 124 : PlainPrinterBase(OS, EH, Config) {} in GNUPrinter() 131 PrinterConfig Config; variable 135 json::OStream JOS(OS, Config in printJSON() 141 JSONPrinter(raw_ostream & OS,PrinterConfig & Config) JSONPrinter() argument [all...] |
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/ |
H A D | sanitizer_symbolize.cpp | 37 llvm::symbolize::PrinterConfig Config; in getDefaultPrinterConfig() 38 Config.Pretty = false; in getDefaultPrinterConfig() 39 Config.Verbose = false; in getDefaultPrinterConfig() 40 Config.PrintFunctions = true; in getDefaultPrinterConfig() 41 Config.PrintAddress = false; in getDefaultPrinterConfig() 42 Config.SourceContextLines = 0; in getDefaultPrinterConfig() 43 return Config; 69 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); in __sanitizer_symbolize_code() 72 OS, symbolize_error_handler(OS), Config); in __sanitizer_symbolize_code() 100 llvm::symbolize::PrinterConfig Config in __sanitizer_symbolize_data() 35 llvm::symbolize::PrinterConfig Config; getDefaultPrinterConfig() local 68 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); __sanitizer_symbolize_code() local 96 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); __sanitizer_symbolize_data() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/LTO/ |
H A D | LTOCodeGenerator.cpp | 137 Config.CodeModel = std::nullopt; in LTOCodeGenerator() 138 Config.StatsFile = LTOStatsFile; in LTOCodeGenerator() 139 Config.PreCodeGenPassesHook = [](legacy::PassManager &PM) { in LTOCodeGenerator() 143 Config.RunCSIRInstr = LTORunCSIRInstr; in LTOCodeGenerator() 144 Config.CSIRProfile = LTOCSIRProfile; in LTOCodeGenerator() 182 Config.Options = Options; in setTargetOptions() 199 Config.OptLevel = Level; in setOptLevel() 200 Config.PTO.LoopVectorization = Config.OptLevel > 1; in setOptLevel() 201 Config.PTO.SLPVectorization = Config.OptLevel > 1; in setOptLevel() 203 CodeGenOpt::getLevel(Config.OptLevel); in setOptLevel() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ValueMap.h | 45 template<typename KeyT, typename ValueT, typename Config> 83 template<typename KeyT, typename ValueT, typename Config =ValueMapConfig<KeyT>> 85 friend class ValueMapCallbackVH<KeyT, ValueT, Config>; 87 using ValueMapCVH = ValueMapCallbackVH<KeyT, ValueT, Config>; 90 using ExtraData = typename Config::ExtraData; 239 template <typename KeyT, typename ValueT, typename Config> 241 friend class ValueMap<KeyT, ValueT, Config>; 244 using ValueMapT = ValueMap<KeyT, ValueT, Config>; 262 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data); 263 std::unique_lock<typename Config::mutex_type> Guard; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/ |
H A D | XCOFFObjcopy.cpp | 23 static Error handleArgs(const CommonConfig &Config, Object &Obj) { in handleArgs() argument 27 Error executeObjcopyOnBinary(const CommonConfig &Config, const XCOFFConfig &, in executeObjcopyOnBinary() argument 32 return createFileError(Config.InputFilename, ObjOrErr.takeError()); in executeObjcopyOnBinary() 35 if (Error E = handleArgs(Config, *Obj)) in executeObjcopyOnBinary() 36 return createFileError(Config.InputFilename, std::move(E)); in executeObjcopyOnBinary() 39 return createFileError(Config.OutputFilename, std::move(E)); in executeObjcopyOnBinary()
|
/freebsd/tools/tools/shlib-compat/ |
H A D | shlib-compat.py | 34 class Config(object): class 145 warn(Config.w_cached, "Item is already cached: %d (%s, %s)" % \ 490 cmpcache = Cache(enabled=Config.cmpcache_enabled) 643 if not Config.version_filter.match(vername): 645 if not Config.symbol_filter.match(p['symbol']): 651 if Config.alias_prefixes: 654 for prefix in Config.alias_prefixes: 662 warn(Config.w_alias, "Symbol alias is " \ 693 warn(Config.w_symbol, "Symbol %s (%s) not found at offset 0x%x" % \ 696 if Config.verbose >= 3: [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
H A D | LTOCodeGenerator.h | 92 Config.RelocModel = Model; in setCodePICModel() 97 void setFileType(CodeGenFileType FT) { Config.CGFileType = FT; } in setFileType() 99 void setCpu(StringRef MCpu) { Config.CPU = std::string(MCpu); } in setCpu() 101 Config.MAttrs = std::move(MAttrs); in setAttrs() 188 void setFreestanding(bool Enabled) { Config.Freestanding = Enabled; } in setFreestanding() 190 void setDisableVerify(bool Value) { Config.DisableVerify = Value; } in setDisableVerify() 192 void setDebugPassManager(bool Enabled) { Config.DebugPassManager = Enabled; } in setDebugPassManager() 250 lto::Config Config; member
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELF_loongarch.cpp | 186 PassConfiguration Config; in link_ELF_loongarch() local 190 Config.PrePrunePasses.push_back(DWARFRecordSectionSplitter(".eh_frame")); in link_ELF_loongarch() 191 Config.PrePrunePasses.push_back( in link_ELF_loongarch() 194 Config.PrePrunePasses.push_back(EHFrameNullTerminator(".eh_frame")); in link_ELF_loongarch() 198 Config.PrePrunePasses.push_back(std::move(MarkLive)); in link_ELF_loongarch() 200 Config.PrePrunePasses.push_back(markAllSymbolsLive); in link_ELF_loongarch() 203 Config.PostPrunePasses.push_back(buildTables_ELF_loongarch); in link_ELF_loongarch() 206 if (auto Err = Ctx->modifyPassConfig(*G, Config)) in link_ELF_loongarch() 209 ELFJITLinker_loongarch::link(std::move(Ctx), std::move(G), std::move(Config)); in link_ELF_loongarch()
|
H A D | ELF_x86_64.cpp | 351 PassConfiguration Config; in link_ELF_x86_64() local 355 Config.PrePrunePasses.push_back(DWARFRecordSectionSplitter(".eh_frame")); in link_ELF_x86_64() 356 Config.PrePrunePasses.push_back(EHFrameEdgeFixer( in link_ELF_x86_64() 359 Config.PrePrunePasses.push_back(EHFrameNullTerminator(".eh_frame")); in link_ELF_x86_64() 364 Config.PrePrunePasses.push_back(std::move(MarkLive)); in link_ELF_x86_64() 366 Config.PrePrunePasses.push_back(markAllSymbolsLive); in link_ELF_x86_64() 369 Config.PostPrunePasses.push_back(buildTables_ELF_x86_64); in link_ELF_x86_64() 372 Config.PostAllocationPasses.push_back( in link_ELF_x86_64() 377 Config.PreFixupPasses.push_back(x86_64::optimizeGOTAndStubAccesses); in link_ELF_x86_64() 380 if (auto Err = Ctx->modifyPassConfig(*G, Config)) in link_ELF_x86_64() [all …]
|