[clang-tools-extra] [llvm] [clang] [nfc][llvm-profdata] Use cl::Subcommand to organize subcommand and options in llvm-profdata (PR #71328)
Mingming Liu via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 13 15:54:36 PST 2023
================
@@ -47,6 +47,21 @@
using namespace llvm;
+// https://llvm.org/docs/CommandGuide/llvm-profdata.html has documentations
+// on each subcommand.
+cl::SubCommand
+ ShowSubcommand("show",
+ "Takes a profile data file and displays the profiles");
+cl::SubCommand
+ OrderSubcommand("order",
+ "Reads temporal profiling traces from a "
+ "profile and outputs a function order that reduces the "
+ "number of page faults for those traces");
+cl::SubCommand
+ OverlapSubcommand("overlap",
+ "Computes and displays the overlap between two profiles");
+cl::SubCommand MergeSubcommand("merge", "Merges profiles");
----------------
minglotus-6 wrote:
done.
https://github.com/llvm/llvm-project/pull/71328
More information about the cfe-commits
mailing list