Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: src/IceClFlags.cpp

Issue 1234803007: Introduction of improved switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Safer check for 0 size type Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceELFObjectWriter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===// 1 //===- subzero/src/IceClFlags.cpp - Command line flags and parsing --------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 cl::opt<std::string> TimingFocusOn( 170 cl::opt<std::string> TimingFocusOn(
171 "timing-focus", 171 "timing-focus",
172 cl::desc("Break down timing for a specific function (use '*' for all)"), 172 cl::desc("Break down timing for a specific function (use '*' for all)"),
173 cl::init("")); 173 cl::init(""));
174 174
175 cl::opt<std::string> 175 cl::opt<std::string>
176 TranslateOnly("translate-only", 176 TranslateOnly("translate-only",
177 cl::desc("Translate only the given function"), cl::init("")); 177 cl::desc("Translate only the given function"), cl::init(""));
178 178
179 cl::opt<bool>
180 UseAdvancedSwitchLowering("adv-switch",
181 cl::desc("Use advanced switch lowering"));
182
179 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); 183 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing"));
180 184
181 cl::opt<std::string> VerboseFocusOn( 185 cl::opt<std::string> VerboseFocusOn(
182 "verbose-focus", 186 "verbose-focus",
183 cl::desc("Temporarily enable full verbosity for a specific function"), 187 cl::desc("Temporarily enable full verbosity for a specific function"),
184 cl::init("")); 188 cl::init(""));
185 189
186 cl::opt<Ice::FileType> OutFileType( 190 cl::opt<Ice::FileType> OutFileType(
187 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), 191 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm),
188 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), 192 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"),
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 OutFlags.GenerateUnitTestMessages = false; 338 OutFlags.GenerateUnitTestMessages = false;
335 OutFlags.PhiEdgeSplit = false; 339 OutFlags.PhiEdgeSplit = false;
336 OutFlags.RandomNopInsertion = false; 340 OutFlags.RandomNopInsertion = false;
337 OutFlags.RandomRegAlloc = false; 341 OutFlags.RandomRegAlloc = false;
338 OutFlags.ReorderFunctions = false; 342 OutFlags.ReorderFunctions = false;
339 OutFlags.ReorderGlobalVariables = false; 343 OutFlags.ReorderGlobalVariables = false;
340 OutFlags.ReorderPooledConstants = false; 344 OutFlags.ReorderPooledConstants = false;
341 OutFlags.SkipUnimplemented = false; 345 OutFlags.SkipUnimplemented = false;
342 OutFlags.SubzeroTimingEnabled = false; 346 OutFlags.SubzeroTimingEnabled = false;
343 OutFlags.TimeEachFunction = false; 347 OutFlags.TimeEachFunction = false;
348 OutFlags.UseAdvancedSwitchLowering = false;
344 OutFlags.UseSandboxing = false; 349 OutFlags.UseSandboxing = false;
345 // Enum and integer fields. 350 // Enum and integer fields.
346 OutFlags.Opt = Opt_m1; 351 OutFlags.Opt = Opt_m1;
347 OutFlags.OutFileType = FT_Iasm; 352 OutFlags.OutFileType = FT_Iasm;
348 OutFlags.RandomMaxNopsPerInstruction = 0; 353 OutFlags.RandomMaxNopsPerInstruction = 0;
349 OutFlags.RandomNopProbabilityAsPercentage = 0; 354 OutFlags.RandomNopProbabilityAsPercentage = 0;
350 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None; 355 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None;
351 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff; 356 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff;
352 OutFlags.ReorderFunctionsWindowSize = 8; 357 OutFlags.ReorderFunctionsWindowSize = 8;
353 OutFlags.TArch = TargetArch_NUM; 358 OutFlags.TArch = TargetArch_NUM;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion); 408 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion);
404 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); 409 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation);
405 OutFlags.setSkipUnimplemented(::SkipUnimplemented); 410 OutFlags.setSkipUnimplemented(::SkipUnimplemented);
406 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); 411 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled);
407 OutFlags.setTargetArch(::TargetArch); 412 OutFlags.setTargetArch(::TargetArch);
408 OutFlags.setTargetInstructionSet(::TargetInstructionSet); 413 OutFlags.setTargetInstructionSet(::TargetInstructionSet);
409 OutFlags.setTestPrefix(::TestPrefix); 414 OutFlags.setTestPrefix(::TestPrefix);
410 OutFlags.setTimeEachFunction(::TimeEachFunction); 415 OutFlags.setTimeEachFunction(::TimeEachFunction);
411 OutFlags.setTimingFocusOn(::TimingFocusOn); 416 OutFlags.setTimingFocusOn(::TimingFocusOn);
412 OutFlags.setTranslateOnly(::TranslateOnly); 417 OutFlags.setTranslateOnly(::TranslateOnly);
418 OutFlags.setUseAdvancedSwitchLowering(::UseAdvancedSwitchLowering);
413 OutFlags.setUseSandboxing(::UseSandboxing); 419 OutFlags.setUseSandboxing(::UseSandboxing);
414 OutFlags.setVerboseFocusOn(::VerboseFocusOn); 420 OutFlags.setVerboseFocusOn(::VerboseFocusOn);
415 OutFlags.setOutFileType(::OutFileType); 421 OutFlags.setOutFileType(::OutFileType);
416 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction); 422 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction);
417 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage); 423 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage);
418 OutFlags.setVerbose(VMask); 424 OutFlags.setVerbose(VMask);
419 425
420 // Set for immediates randomization or pooling option. 426 // Set for immediates randomization or pooling option.
421 OutFlags.setRandomizeAndPoolImmediatesOption( 427 OutFlags.setRandomizeAndPoolImmediatesOption(
422 ::RandomizeAndPoolImmediatesOption); 428 ::RandomizeAndPoolImmediatesOption);
(...skipping 17 matching lines...) Expand all
440 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 446 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
441 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 447 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
442 OutFlagsExtra.setAppName(AppName); 448 OutFlagsExtra.setAppName(AppName);
443 OutFlagsExtra.setInputFileFormat(InputFileFormat); 449 OutFlagsExtra.setInputFileFormat(InputFileFormat);
444 OutFlagsExtra.setIRFilename(IRFilename); 450 OutFlagsExtra.setIRFilename(IRFilename);
445 OutFlagsExtra.setLogFilename(LogFilename); 451 OutFlagsExtra.setLogFilename(LogFilename);
446 OutFlagsExtra.setOutputFilename(OutputFilename); 452 OutFlagsExtra.setOutputFilename(OutputFilename);
447 } 453 }
448 454
449 } // end of namespace Ice 455 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceELFObjectWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698