Home
last modified time | relevance | path

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

12345678910>>...12

/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp323 if (Config.StripUnneeded || !Config.UnneededSymbolsToRemove.empty() || in updateAndRemoveSymbols()
337 if (Config.StripAll || Config.StripAllGNU) in updateAndRemoveSymbols()
380 if (Config.StripDWO) in replaceAndRemoveSections()
385 if (Config.ExtractDWO) in replaceAndRemoveSections()
390 if (Config.StripAllGNU) in replaceAndRemoveSections()
414 if (Config.StripDebug || Config.StripUnneeded) { in replaceAndRemoveSections()
429 if (Config.StripAll) in replaceAndRemoveSections()
448 if (Config.ExtractPartition || Config.ExtractMainPartition) { in replaceAndRemoveSections()
607 if (!Config.SplitDWO.empty() && Config.ExtractDWO) { in handleArgs()
679 if (!Config.SetSectionFlags.empty() || !Config.SetSectionType.empty()) { in handleArgs()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-ifs/
H A Dllvm-ifs.cpp304 DriverConfig Config; in parseArgs() local
376 return Config; in parseArgs()
489 if (Config.SoName) in main()
494 Config.OverrideBitWidth, Config.OptTargetTriple); in main()
508 if (!Config.OutputElf && !Config.OutputIfs && !Config.OutputTbd) { in main()
558 stripIFSTarget(Stub, Config.StripIfsTarget, Config.StripIfsArch, in main()
562 writeIFS(Config.Output.value(), Stub, Config.WriteIfChanged); in main()
572 writeBinaryStub(*Config.Output, Stub, Config.WriteIfChanged); in main()
585 writeBinaryStub(*Config.OutputElf, Stub, Config.WriteIfChanged); in main()
608 stripIFSTarget(Stub, Config.StripIfsTarget, Config.StripIfsArch, in main()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dsize_class_map.h30 if (Config::MaxBytesCachedLog > 31 || Config::MaxSizeLog > 31) in getMaxCachedHint()
57 template <typename Config>
70 static const uptr MaxSize = (1UL << Config::MaxSizeLog) + Config::SizeDelta;
72 MidClass + ((Config::MaxSizeLog - Config::MidSizeLog) << S) + 1;
80 return (ClassId << Config::MinSizeLog) + Config::SizeDelta; in getSizeByClassId()
93 if (Size <= Config::SizeDelta + (1 << Config::MinSizeLog)) in getClassIdBySize()
95 Size -= Config::SizeDelta; in getClassIdBySize()
108 template <typename Config>
115 sizeof(Config::Classes) / sizeof(Config::Classes[0]);
138 return (Config::MaxSizeLog - Config::MidSizeLog) << S; in getTableSize()
[all …]
H A Dsecondary.h52 if (allocatorSupportsMemoryTagging<Config>()) in addHeaderTag()
97 template <typename Config>
162 if (useMemoryTagging<Config>(Options)) { in store()
189 useMemoryTagging<Config>(Options)) { in store()
264 if (useMemoryTagging<Config>(Options)) in retrieve()
267 if (useMemoryTagging<Config>(Options)) { in retrieve()
473 typename Config::SecondaryCache Cache;
496 template <typename Config>
579 if (useMemoryTagging<Config>(Options)) in allocate()
602 template <typename Config>
[all …]
/llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/
H A DCOFFObjcopy.cpp139 if (!Config.OnlySection.empty() && !Config.OnlySection.matches(Sec.Name)) in handleArgs()
142 if (Config.StripDebug || Config.StripAll || Config.StripAllGNU || in handleArgs()
143 Config.DiscardMode == DiscardType::All || Config.StripUnneeded) { in handleArgs()
155 if (Config.OnlyKeepDebug) { in handleArgs()
166 if (Config.StripAll || Config.StripAllGNU) in handleArgs()
171 if (Config.StripUnneeded || Config.DiscardMode == DiscardType::All || in handleArgs()
172 !Config.SymbolsToRemove.empty()) in handleArgs()
185 if (Config.StripAll || Config.StripAllGNU) in handleArgs()
205 if (Config.StripUnneeded || in handleArgs()
225 if (!Config.SetSectionFlags.empty()) in handleArgs()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objcopy/
H A Dllvm-objcopy.cpp117 switch (Config.OutputFormat) { in executeObjcopyOnRawBinary()
139 CommonConfig &Config = ConfigMgr.Common; in executeObjcopy() local
172 createBinary(Config.InputFilename); in executeObjcopy()
191 if (Config.SplitDWO.empty()) { in executeObjcopy()
197 Config.ExtractDWO = true; in executeObjcopy()
198 Config.StripDWO = false; in executeObjcopy()
203 Config.ExtractDWO = false; in executeObjcopy()
204 Config.StripDWO = true; in executeObjcopy()
214 PermsApplierOrErr->apply(Config.OutputFilename, Config.PreserveDates)) in executeObjcopy()
217 if (!Config.SplitDWO.empty()) in executeObjcopy()
[all …]
H A DObjcopyOptions.cpp711 Config.OutputFormat = Config.InputFormat; in parseObjcopyOptions()
747 Config.GnuDebugLinkCRC32 = in parseObjcopyOptions()
879 Config.StripDebug = true; in parseObjcopyOptions()
962 if (Config.PreserveDates && in parseObjcopyOptions()
963 (Config.OutputFilename == "-" || Config.InputFilename == "-")) in parseObjcopyOptions()
1001 if (Config.ExtractPartition && Config.ExtractMainPartition) in parseObjcopyOptions()
1310 !Config.OnlyKeepDebug && !Config.StripUnneeded && in parseStripOptions()
1311 Config.DiscardMode == DiscardType::None && !Config.StripAllGNU && in parseStripOptions()
1313 Config.StripAll = true; in parseStripOptions()
1316 Config.StripDebug = true; in parseStripOptions()
[all …]
/llvm-project-15.0.7/llvm/lib/ObjCopy/wasm/
H A DWasmObjcopy.cpp64 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()
91 if (!Config.OnlySection.empty()) { in removeSections()
99 if (!Config.KeepSection.empty()) { in removeSections()
114 for (StringRef Flag : Config.DumpSection) { in handleArgs()
122 removeSections(Config, Obj); in handleArgs()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DConfig.h44 struct Config { struct
46 static const Config &current();
48 static clangd::Key<Config> Key; argument
50 Config() = default;
51 Config(const Config &) = delete;
52 Config &operator=(const Config &) = delete; argument
53 Config(Config &&) = default;
54 Config &operator=(Config &&) = default; argument
149 template <> struct DenseMapInfo<clang::clangd::Config::ExternalIndexSpec> { argument
150 using ExternalIndexSpec = clang::clangd::Config::ExternalIndexSpec;
H A DConfigCompile.cpp80 bool operator()(const Params &P, Config &C) const { in operator ()()
294 llvm::Optional<Config::CDBSearchSpec> Spec; in compile()
297 Spec->Policy = Config::CDBSearchSpec::Ancestors; in compile()
300 Spec->Policy = Config::CDBSearchSpec::NoCDBSearch; in compile()
312 Spec->Policy = Config::CDBSearchSpec::FixedDir; in compile()
368 Config::ExternalIndexSpec Spec; in compile()
370 Spec.Kind = Config::ExternalIndexSpec::Server; in compile()
373 Spec.Kind = Config::ExternalIndexSpec::File; in compile()
381 Spec.Kind = Config::ExternalIndexSpec::None; in compile()
383 if (Spec.Kind != Config::ExternalIndexSpec::None) { in compile()
[all …]
H A DConfig.cpp15 Key<Config> Config::Key;
17 const Config &Config::current() { in current()
18 if (const Config *C = Context::current().get(Key)) in current()
20 static Config Default; in current()
/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/llvm/tools/llvm-dwarfutil/
H A Dllvm-dwarfutil.cpp231 objcopy::ConfigManager Config; in saveSeparateDebugInfo() local
234 Config.Common.OutputFilename = OutputFilename; in saveSeparateDebugInfo()
235 Config.Common.OnlyKeepDebug = true; in saveSeparateDebugInfo()
255 objcopy::ConfigManager Config; in saveNonDebugInfo() local
258 Config.Common.StripDebug = true; in saveNonDebugInfo()
337 objcopy::ConfigManager Config; in saveSeparateLinkedDebugInfo() local
341 Config.Common.StripDebug = true; in saveSeparateLinkedDebugInfo()
342 Config.Common.OnlyKeepDebug = true; in saveSeparateLinkedDebugInfo()
368 objcopy::ConfigManager Config; in saveSingleLinkedDebugInfo() local
372 Config.Common.StripDebug = true; in saveSingleLinkedDebugInfo()
[all …]
/llvm-project-15.0.7/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp60 if (!Config.ToRemove.empty()) { in removeSections()
66 if (Config.StripAll || Config.StripDebug) { in removeSections()
76 if (!Config.OnlySection.empty()) { in removeSections()
98 if (I != Config.SymbolsToRename.end()) in updateAndRemoveSymbols()
102 auto RemovePred = [&Config, &MachOConfig, in updateAndRemoveSymbols()
110 if (Config.StripAll) in updateAndRemoveSymbols()
395 for (StringRef Flag : Config.DumpSection) { in handleArgs()
403 if (Error E = removeSections(Config, Obj)) in handleArgs()
407 if (Config.StripAll) in handleArgs()
408 markSymbols(Config, Obj); in handleArgs()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_symbolize.cpp35 llvm::symbolize::PrinterConfig Config; in getDefaultPrinterConfig() local
36 Config.Pretty = false; in getDefaultPrinterConfig()
37 Config.Verbose = false; in getDefaultPrinterConfig()
38 Config.PrintFunctions = true; in getDefaultPrinterConfig()
39 Config.PrintAddress = false; in getDefaultPrinterConfig()
40 Config.SourceContextLines = 0; in getDefaultPrinterConfig()
41 return Config; in getDefaultPrinterConfig()
58 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); in __sanitizer_symbolize_code() local
61 std::make_unique<llvm::symbolize::LLVMPrinter>(OS, OS, Config); in __sanitizer_symbolize_code()
86 llvm::symbolize::PrinterConfig Config = getDefaultPrinterConfig(); in __sanitizer_symbolize_data() local
[all …]
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOCodeGenerator.cpp124 Config.CodeModel = None; in LTOCodeGenerator()
166 Config.Options = Options; in setTargetOptions()
183 Config.OptLevel = Level; in setOptLevel()
184 Config.PTO.LoopVectorization = Config.OptLevel > 1; in setOptLevel()
185 Config.PTO.SLPVectorization = Config.OptLevel > 1; in setOptLevel()
186 switch (Config.OptLevel) { in setOptLevel()
337 Config.CPU = "core2"; in determineTarget()
339 Config.CPU = "yonah"; in determineTarget()
344 Config.CPU = "cyclone"; in determineTarget()
356 TripleStr, Config.CPU, FeatureStr, Config.Options, Config.RelocModel, in createTargetMachine()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/Symbolize/
H A DDIPrinter.h74 PrinterConfig Config; variable
89 PlainPrinterBase(raw_ostream &OS, raw_ostream &ES, PrinterConfig &Config) in PlainPrinterBase() argument
90 : OS(OS), ES(ES), Config(Config) {} in PlainPrinterBase()
114 LLVMPrinter(raw_ostream &OS, raw_ostream &ES, PrinterConfig &Config) in LLVMPrinter() argument
115 : PlainPrinterBase(OS, ES, Config) {} in LLVMPrinter()
123 GNUPrinter(raw_ostream &OS, raw_ostream &ES, PrinterConfig &Config) in GNUPrinter() argument
124 : PlainPrinterBase(OS, ES, Config) {} in GNUPrinter()
130 PrinterConfig Config; variable
134 json::OStream JOS(OS, Config.Pretty ? 2 : 0); in printJSON()
140 JSONPrinter(raw_ostream &OS, PrinterConfig &Config) in JSONPrinter() argument
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DProjectAwareIndexTests.cpp36 IndexFactory Gen = [](const Config::ExternalIndexSpec &, AsyncTaskRunner *) { in TEST()
47 Config C; in TEST()
48 C.Index.External.Kind = Config::ExternalIndexSpec::File; in TEST()
50 WithContextValue With(Config::Key, std::move(C)); in TEST()
57 IndexFactory Gen = [&](const Config::ExternalIndexSpec &, AsyncTaskRunner *) { in TEST()
73 Config C; in TEST()
74 C.Index.External.Kind = Config::ExternalIndexSpec::File; in TEST()
76 WithContextValue With(Config::Key, std::move(C)); in TEST()
H A DConfigCompileTests.cpp40 Config Conf;
45 Conf = Config(); in compileAndApply()
140 Config::CDBSearchSpec::NoCDBSearch); in TEST_F()
145 Config::CDBSearchSpec::Ancestors); in TEST_F()
151 Config::CDBSearchSpec::Ancestors) in TEST_F()
162 Config::CDBSearchSpec::FixedDir); in TEST_F()
171 Config::CDBSearchSpec::FixedDir); in TEST_F()
179 EXPECT_EQ(Conf.Index.Background, Config::BackgroundPolicy::Skip); in TEST_F()
253 Config::UnusedIncludesPolicy::None); in TEST_F()
259 Config::UnusedIncludesPolicy::None); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/unittests/ObjCopy/
H A DObjCopyTest.cpp124 callObjCopy(ConfigManager &Config, object::Binary &In, in callObjCopy() argument
133 Config.Common.OutputFilename); in callObjCopy()
198 ConfigManager Config; in copySimpleInMemoryFileImpl() local
199 Config.Common.OutputFilename = "a.out"; in copySimpleInMemoryFileImpl()
204 callObjCopy(Config, *Obj.get(), DataVector, IsValidFormat); in copySimpleInMemoryFileImpl()
259 ConfigManager Config; in addOrUpdateSectionToFileImpl() local
260 Config.Common.OutputFilename = "a.out"; in addOrUpdateSectionToFileImpl()
269 callObjCopy(Config, *Obj.get(), DataVector, IsValidFormat); in addOrUpdateSectionToFileImpl()
353 ConfigManager Config; in removeSectionByPatternImpl() local
354 Config.Common.OutputFilename = "a.out"; in removeSectionByPatternImpl()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DValueMap.h46 template<typename KeyT, typename ValueT, typename Config>
86 friend class ValueMapCallbackVH<KeyT, ValueT, Config>;
91 using ExtraData = typename Config::ExtraData;
242 friend class ValueMap<KeyT, ValueT, Config>;
245 using ValueMapT = ValueMap<KeyT, ValueT, Config>;
263 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data);
264 std::unique_lock<typename Config::mutex_type> Guard;
276 typename Config::mutex_type *M = Config::getMutex(Copy.Map->Data);
277 std::unique_lock<typename Config::mutex_type> Guard;
284 if (Config::FollowRAUW) {
[all …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
100 void setAttrs(std::vector<std::string> MAttrs) { Config.MAttrs = MAttrs; } in setAttrs()
186 void setFreestanding(bool Enabled) { Config.Freestanding = Enabled; } in setFreestanding()
188 void setDisableVerify(bool Value) { Config.DisableVerify = Value; } in setDisableVerify()
190 void setDebugPassManager(bool Enabled) { Config.DebugPassManager = Enabled; } in setDebugPassManager()
245 lto::Config Config; member
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/benchmarks/
H A Dmalloc_benchmark.cpp19 template <typename Config> void PostInitCallback() { in PostInitCallback()
20 reinterpret_cast<scudo::Allocator<Config> *>(CurrentAllocator)->initGwpAsan(); in PostInitCallback()
23 template <typename Config> static void BM_malloc_free(benchmark::State &State) { in BM_malloc_free()
24 using AllocatorT = scudo::Allocator<Config, PostInitCallback<Config>>; in BM_malloc_free()
62 template <typename Config>
64 using AllocatorT = scudo::Allocator<Config, PostInitCallback<Config>>; in BM_malloc_free_loop()
/llvm-project-15.0.7/clang/unittests/StaticAnalyzer/
H A DAnalyzerOptionsTest.cpp35 Opts.Config["Outer.Inner.CheckerOne:Option"] = "true"; in TEST()
36 Opts.Config["Outer.Inner:Option"] = "false"; in TEST()
37 Opts.Config["Outer.Inner:Option2"] = "true"; in TEST()
38 Opts.Config["Outer:Option2"] = "false"; in TEST()
76 Opts.Config["Outer.Inner.CheckerOne:Option"] = "StringValue"; in TEST()
91 Opts.Config["Outer.Inner.CheckerOne:Option"] = "StringValue"; in TEST()

12345678910>>...12