-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[PGO] Drive profile validator from opt #147418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,7 @@ config.linked_bye_extension = @LLVM_BYE_LINK_INTO_TOOLS@ | |
| config.linked_exampleirtransforms_extension = @LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS@ | ||
| config.have_tf_aot = @LLVM_HAVE_TF_AOT@ | ||
| config.have_tflite = @LLVM_HAVE_TFLITE@ | ||
| config.enable_profcheck = @LLVM_ENABLE_PROFCHECK@ | ||
|
||
| config.llvm_inliner_model_autogenerated = @LLVM_INLINER_MODEL_AUTOGENERATED@ | ||
| config.llvm_raevict_model_autogenerated = @LLVM_RAEVICT_MODEL_AUTOGENERATED@ | ||
| config.expensive_checks = @LLVM_ENABLE_EXPENSIVE_CHECKS@ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -217,6 +217,15 @@ static cl::opt<bool> VerifyDebugInfoPreserve( | |
| cl::desc("Start the pipeline with collecting and end it with checking of " | ||
| "debug info preservation.")); | ||
|
|
||
| static cl::opt<bool> EnableProfileVerification( | ||
| "enable-profcheck", | ||
| #if defined(LLVM_ENABLE_PROFCHECK) | ||
| cl::init(true), | ||
| #else | ||
| cl::init(false), | ||
| #endif | ||
| cl::desc("Start the pipeline with prof-inject and end it with prof-check")); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this should say
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, yes - thanks for the catch. #151979. |
||
|
|
||
| static cl::opt<std::string> ClDataLayout("data-layout", | ||
| cl::desc("data layout string to use"), | ||
| cl::value_desc("layout-string"), | ||
|
|
@@ -746,7 +755,8 @@ extern "C" int optMain( | |
| RemarksFile.get(), Pipeline, PluginList, PassBuilderCallbacks, | ||
| OK, VK, PreserveAssemblyUseListOrder, | ||
| PreserveBitcodeUseListOrder, EmitSummaryIndex, EmitModuleHash, | ||
| EnableDebugify, VerifyDebugInfoPreserve, UnifiedLTO) | ||
| EnableDebugify, VerifyDebugInfoPreserve, | ||
| EnableProfileVerification, UnifiedLTO) | ||
| ? 0 | ||
| : 1; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe worth adding this option to
llvm/docs/CMake.rst?