aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp
diff options
context:
space:
mode:
authorTomer Shafir <tomer.shafir8@gmail.com>2025-11-09 14:11:53 +0200
committerGitHub <noreply@github.com>2025-11-09 14:11:53 +0200
commit96a52893ca401f0ac46a67549f608d526b3f3dc8 (patch)
treeb8e561fd05aba3831a3b10cac7c2a49b262b972f /clang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp
parent93d445cba39f4dd3dcda4fa1433eca825cf8fc09 (diff)
downloadllvm-main.zip
llvm-main.tar.gz
llvm-main.tar.bz2
[tools][llc] Add `--save-stats` option (#163967)HEADmain
This patch adds a Clang-compatible `--save-stats` option, to provide an easy to use way to save LLVM statistics files when working with llc on the backend. Like on Clang, one can specify `--save-stats`, `--save-stats=cwd`, and `--save-stats=obj` with the same semantics and JSON format. The implementation uses 2 methods `MaybeEnableStats` and `MaybeSaveStats` called before and after `compileModule` respectively that externally own the statistics related logic, while `compileModule` is now required to return the resolved output filename via an output param. Note: like on Clang, the pre-existing `--stats` option is not affected.
Diffstat (limited to 'clang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp')
0 files changed, 0 insertions, 0 deletions