[llvm] [BOLT][merge-fdata]Fix support for fdata files starting with no_lbr on ARM platform (PR #112328)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 12:24:41 PDT 2024
================
@@ -34,45 +34,32 @@ cl::OptionCategory MergeFdataCategory("merge-fdata options");
enum SortType : char {
ST_NONE,
- ST_EXEC_COUNT, /// Sort based on function execution count.
- ST_TOTAL_BRANCHES, /// Sort based on all branches in the function.
+ ST_EXEC_COUNT, /// Sort based on function execution count.
+ ST_TOTAL_BRANCHES, /// Sort based on all branches in the function.
};
static cl::list<std::string>
-InputDataFilenames(
- cl::Positional,
- cl::CommaSeparated,
- cl::desc("<fdata1> [<fdata2>]..."),
- cl::OneOrMore,
- cl::cat(MergeFdataCategory));
-
-static cl::opt<SortType>
-PrintFunctionList("print",
- cl::desc("print the list of objects with count to stderr"),
- cl::init(ST_NONE),
- cl::values(clEnumValN(ST_NONE,
- "none",
- "do not print objects/functions"),
- clEnumValN(ST_EXEC_COUNT,
- "exec",
- "print functions sorted by execution count"),
- clEnumValN(ST_TOTAL_BRANCHES,
- "branches",
- "print functions sorted by total branch count")),
- cl::cat(MergeFdataCategory));
-
-static cl::opt<bool>
-SuppressMergedDataOutput("q",
- cl::desc("do not print merged data to stdout"),
- cl::init(false),
- cl::Optional,
- cl::cat(MergeFdataCategory));
-
-static cl::opt<std::string>
-OutputFilePath("o",
- cl::value_desc("file"),
- cl::desc("Write output to <file>"),
- cl::cat(MergeFdataCategory));
+ InputDataFilenames(cl::Positional, cl::CommaSeparated,
----------------
aaupov wrote:
Any particular reason to change the formatting? Did you change any options?
https://github.com/llvm/llvm-project/pull/112328
More information about the llvm-commits
mailing list