Home
last modified time | relevance | path

Searched refs:Config (Results 1 – 25 of 228) sorted by relevance

12345678910

/src/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp157 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 …]
/src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dallocator_config.h72 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 Dsize_class_map.h25 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()
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> Base;
64 static const uptr MinSize = 1UL << Config::MinSizeLog;
65 static const uptr MidSize = 1UL << Config::MidSizeLog;
[all …]
H A Dsecondary.h51 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 Dallocator_config_wrapper.h48 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; \
/src/contrib/libfido2/windows/
H A Drelease.ps110 $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 Dbuild.ps112 [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}" `
228 & $CMake --build . --config ${Config} --verbose; ExitOnError
[all …]
H A Dcygwin.ps18 [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
/src/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp157 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.StripUnneeded) { in handleArgs()
179 if (Config.ToRemove.matches(Sec.Name)) in handleArgs()
185 if (Config.OnlyKeepDebug) { in handleArgs()
196 if (Config.StripAll || Config.StripAllGNU) in handleArgs()
201 if (Config.StripUnneeded || Config.DiscardMode == DiscardType::All || in handleArgs()
[all …]
/src/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp115 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 DObjcopyOptions.cpp646 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 …]
/src/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp60 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.OnlySection.empty()) { in removeSections()
[all …]
/src/contrib/llvm-project/llvm/lib/ObjCopy/
H A DObjCopy.cpp38 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 DArchive.cpp24 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() argument
101 createNewArchiveMembers(Config, Ar); in executeObjcopyOnArchive()
104 const CommonConfig &CommonConfig = Config.getCommonConfig(); in executeObjcopyOnArchive()
/src/contrib/llvm-project/llvm/tools/llvm-dwarfutil/
H A Dllvm-dwarfutil.cpp165 static Error setConfigToAddNewDebugSections(objcopy::ConfigManager &Config, in setConfigToAddNewDebugSections() argument
178 Config.Common.AddSection.emplace_back(objcopy::NewSectionInfo( in setConfigToAddNewDebugSections()
252 objcopy::ConfigManager Config; in saveSeparateDebugInfo() local
254 Config.Common.InputFilename = Opts.InputFileName; in saveSeparateDebugInfo()
255 Config.Common.OutputFilename = OutputFilename; in saveSeparateDebugInfo()
256 Config.Common.OnlyKeepDebug = true; in saveSeparateDebugInfo()
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 saveNonDebugInfo() local
277 Config.Common.InputFilename = Opts.InputFileName; in saveNonDebugInfo()
[all …]
/src/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp55 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
102 (Config.Weaken || Config.SymbolsToWeaken.matches(Sym.Name))) in updateAndRemoveSymbols()
[all …]
/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_symbolize.cpp37 llvm::symbolize::PrinterConfig Config; in getDefaultPrinterConfig() local
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; in getDefaultPrinterConfig()
69 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); in __sanitizer_symbolize_code() local
72 OS, symbolize_error_handler(OS), Config); in __sanitizer_symbolize_code()
100 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); in __sanitizer_symbolize_data() local
[all …]
/src/contrib/llvm-project/llvm/include/llvm/DebugInfo/Symbolize/
H A DDIPrinter.h74 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.Pretty ? 2 : 0); in printJSON()
141 JSONPrinter(raw_ostream &OS, PrinterConfig &Config) in JSONPrinter() argument
[all …]
/src/contrib/llvm-project/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp137 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 …]
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DValueMap.h45 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 …]
/src/contrib/llvm-project/clang/lib/Frontend/
H A DSARIFDiagnostic.cpp139 auto Config = SarifReportingConfiguration::create(); in addDiagnosticLevelToRule() local
143 Config = Config.setLevel(SarifResultLevel::Note); in addDiagnosticLevelToRule()
146 Config = Config.setLevel(SarifResultLevel::None); in addDiagnosticLevelToRule()
149 Config = Config.setLevel(SarifResultLevel::Warning); in addDiagnosticLevelToRule()
152 Config = Config.setLevel(SarifResultLevel::Error).setRank(50); in addDiagnosticLevelToRule()
155 Config = Config.setLevel(SarifResultLevel::Error).setRank(100); in addDiagnosticLevelToRule()
161 return Rule.setDefaultConfiguration(Config); in addDiagnosticLevelToRule()
/src/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFObjcopy.cpp23 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()
/src/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOCodeGenerator.h92 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
/src/tools/tools/shlib-compat/
H A Dshlib-compat.py34 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 …]
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_loongarch.cpp186 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()

12345678910