[llvm] [llvm-dwarfdump] Make --verify for .debug_names multithreaded. (PR #127281)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 17:25:35 PST 2025


================
@@ -284,6 +286,9 @@ static cl::opt<bool>
                 cat(DwarfDumpCategory));
 static opt<bool> Verify("verify", desc("Verify the DWARF debug info."),
                         cat(DwarfDumpCategory));
+static opt<unsigned> VerifyNumThreads(
+    "verify-num-threads", init(hardware_concurrency().compute_thread_count()),
+    desc("Number of threads to use for --verify."), cat(DwarfDumpCategory));
----------------
ayermolo wrote:

Yes it is optional. Right now it's only for debug-names, but as other parts of verification become parallel it will apply to them also. 
It defaults to max threads hardware supports.

https://github.com/llvm/llvm-project/pull/127281


More information about the llvm-commits mailing list