Chromium Code Reviews| Index: src/IceClFlags.cpp |
| diff --git a/src/IceClFlags.cpp b/src/IceClFlags.cpp |
| index 203b54ef03036235b78740a067518000502b8f46..ef27cd9b1a0a34747c73992754f8aee38ef8469c 100644 |
| --- a/src/IceClFlags.cpp |
| +++ b/src/IceClFlags.cpp |
| @@ -158,6 +158,12 @@ cl::opt<std::string> |
| cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); |
| +cl::opt<bool> EnableBlockProfile( |
|
Jim Stichnoth
2015/06/08 23:45:31
This should probably go between DumpStats and Func
John
2015/06/09 15:36:18
Done.
|
| + "enable-block-profile", |
| + cl::desc("If true, instruments basic blocks, and output profiling " |
|
Jim Stichnoth
2015/06/08 23:45:31
"instrument" instead of "instruments", for consist
John
2015/06/09 15:36:18
Done.
|
| + "information at the end of program execution."), |
|
Jim Stichnoth
2015/06/08 23:45:31
Mention that it outputs to stdout?
John
2015/06/09 15:36:18
Done.
|
| + cl::init(false)); |
| + |
| cl::opt<std::string> VerboseFocusOn( |
| "verbose-focus", |
| cl::desc("Temporarily enable full verbosity for a specific function"), |
| @@ -270,6 +276,7 @@ void ClFlags::resetClFlags(ClFlags &OutFlags) { |
| OutFlags.SubzeroTimingEnabled = false; |
| OutFlags.TimeEachFunction = false; |
| OutFlags.UseSandboxing = false; |
| + OutFlags.EnableBlockProfile = false; |
|
Jim Stichnoth
2015/06/08 23:45:31
move this between DumpStats and FunctionSections
John
2015/06/09 15:36:18
Done.
|
| // Enum and integer fields. |
| OutFlags.Opt = Opt_m1; |
| OutFlags.OutFileType = FT_Iasm; |
| @@ -311,6 +318,7 @@ void ClFlags::getParsedClFlags(ClFlags &OutFlags) { |
| OutFlags.setDisableIRGeneration(::DisableIRGeneration); |
| OutFlags.setDisableTranslation(::DisableTranslation); |
| OutFlags.setDumpStats(::DumpStats); |
| + OutFlags.setEnableBlockProfile(::EnableBlockProfile); |
| OutFlags.setFunctionSections(::FunctionSections); |
| OutFlags.setNumTranslationThreads(::NumThreads); |
| OutFlags.setOptLevel(::OLevel); |