[llvm] [llvm-profgen] Add support for Linux kenrel profile (PR #92831)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 19:08:03 PDT 2024
================
@@ -56,6 +56,10 @@ static cl::list<std::string> DisassembleFunctions(
cl::desc("List of functions to print disassembly for. Accept demangled "
"names only. Only work with show-disassembly-only"));
+static cl::opt<bool>
+ KernelBinary("kernel",
----------------
WenleiHe wrote:
Given we assume kernel binary has specific names, do we need an extra flag to tell the tool to generate profile for kernel?
If we have this flag, what happens if the flag is used but binary provided doesn't match the predefined kernel binary name? Should we error out?
https://github.com/llvm/llvm-project/pull/92831
More information about the llvm-commits
mailing list