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

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: 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
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
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> UseSandboxing("sandbox", cl::desc("Use sandboxing")); 179 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing"));
180 180
181 cl::opt<bool> UseAdvancedSwitchLowering("adv-switch",
182 cl::desc("Use advanced switch lowering"));
183
181 cl::opt<std::string> VerboseFocusOn( 184 cl::opt<std::string> VerboseFocusOn(
182 "verbose-focus", 185 "verbose-focus",
183 cl::desc("Temporarily enable full verbosity for a specific function"), 186 cl::desc("Temporarily enable full verbosity for a specific function"),
184 cl::init("")); 187 cl::init(""));
185 188
186 cl::opt<Ice::FileType> OutFileType( 189 cl::opt<Ice::FileType> OutFileType(
187 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), 190 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm),
188 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), 191 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"),
189 clEnumValN(Ice::FT_Asm, "asm", "Assembly ('.s') file"), 192 clEnumValN(Ice::FT_Asm, "asm", "Assembly ('.s') file"),
190 clEnumValN(Ice::FT_Iasm, "iasm", 193 clEnumValN(Ice::FT_Iasm, "iasm",
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 OutFlags.PhiEdgeSplit = false; 338 OutFlags.PhiEdgeSplit = false;
336 OutFlags.RandomNopInsertion = false; 339 OutFlags.RandomNopInsertion = false;
337 OutFlags.RandomRegAlloc = false; 340 OutFlags.RandomRegAlloc = false;
338 OutFlags.ReorderFunctions = false; 341 OutFlags.ReorderFunctions = false;
339 OutFlags.ReorderGlobalVariables = false; 342 OutFlags.ReorderGlobalVariables = false;
340 OutFlags.ReorderPooledConstants = false; 343 OutFlags.ReorderPooledConstants = false;
341 OutFlags.SkipUnimplemented = false; 344 OutFlags.SkipUnimplemented = false;
342 OutFlags.SubzeroTimingEnabled = false; 345 OutFlags.SubzeroTimingEnabled = false;
343 OutFlags.TimeEachFunction = false; 346 OutFlags.TimeEachFunction = false;
344 OutFlags.UseSandboxing = false; 347 OutFlags.UseSandboxing = false;
348 OutFlags.UseAdvancedSwitchLowering = false;
345 // Enum and integer fields. 349 // Enum and integer fields.
346 OutFlags.Opt = Opt_m1; 350 OutFlags.Opt = Opt_m1;
347 OutFlags.OutFileType = FT_Iasm; 351 OutFlags.OutFileType = FT_Iasm;
348 OutFlags.RandomMaxNopsPerInstruction = 0; 352 OutFlags.RandomMaxNopsPerInstruction = 0;
349 OutFlags.RandomNopProbabilityAsPercentage = 0; 353 OutFlags.RandomNopProbabilityAsPercentage = 0;
350 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None; 354 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None;
351 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff; 355 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff;
352 OutFlags.ReorderFunctionsWindowSize = 8; 356 OutFlags.ReorderFunctionsWindowSize = 8;
353 OutFlags.TArch = TargetArch_NUM; 357 OutFlags.TArch = TargetArch_NUM;
354 OutFlags.VMask = IceV_None; 358 OutFlags.VMask = IceV_None;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); 400 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation);
397 OutFlags.setSkipUnimplemented(::SkipUnimplemented); 401 OutFlags.setSkipUnimplemented(::SkipUnimplemented);
398 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); 402 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled);
399 OutFlags.setTargetArch(::TargetArch); 403 OutFlags.setTargetArch(::TargetArch);
400 OutFlags.setTargetInstructionSet(::TargetInstructionSet); 404 OutFlags.setTargetInstructionSet(::TargetInstructionSet);
401 OutFlags.setTestPrefix(::TestPrefix); 405 OutFlags.setTestPrefix(::TestPrefix);
402 OutFlags.setTimeEachFunction(::TimeEachFunction); 406 OutFlags.setTimeEachFunction(::TimeEachFunction);
403 OutFlags.setTimingFocusOn(::TimingFocusOn); 407 OutFlags.setTimingFocusOn(::TimingFocusOn);
404 OutFlags.setTranslateOnly(::TranslateOnly); 408 OutFlags.setTranslateOnly(::TranslateOnly);
405 OutFlags.setUseSandboxing(::UseSandboxing); 409 OutFlags.setUseSandboxing(::UseSandboxing);
410 OutFlags.setUseAdvancedSwitchLowering(::UseAdvancedSwitchLowering);
406 OutFlags.setVerboseFocusOn(::VerboseFocusOn); 411 OutFlags.setVerboseFocusOn(::VerboseFocusOn);
407 OutFlags.setOutFileType(::OutFileType); 412 OutFlags.setOutFileType(::OutFileType);
408 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction); 413 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction);
409 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage); 414 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage);
410 OutFlags.setVerbose(VMask); 415 OutFlags.setVerbose(VMask);
411 416
412 // Set for immediates randomization or pooling option. 417 // Set for immediates randomization or pooling option.
413 OutFlags.setRandomizeAndPoolImmediatesOption( 418 OutFlags.setRandomizeAndPoolImmediatesOption(
414 ::RandomizeAndPoolImmediatesOption); 419 ::RandomizeAndPoolImmediatesOption);
415 OutFlags.setRandomizeAndPoolImmediatesThreshold( 420 OutFlags.setRandomizeAndPoolImmediatesThreshold(
(...skipping 16 matching lines...) Expand all
432 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 437 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
433 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 438 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
434 OutFlagsExtra.setAppName(AppName); 439 OutFlagsExtra.setAppName(AppName);
435 OutFlagsExtra.setInputFileFormat(InputFileFormat); 440 OutFlagsExtra.setInputFileFormat(InputFileFormat);
436 OutFlagsExtra.setIRFilename(IRFilename); 441 OutFlagsExtra.setIRFilename(IRFilename);
437 OutFlagsExtra.setLogFilename(LogFilename); 442 OutFlagsExtra.setLogFilename(LogFilename);
438 OutFlagsExtra.setOutputFilename(OutputFilename); 443 OutFlagsExtra.setOutputFilename(OutputFilename);
439 } 444 }
440 445
441 } // end of namespace Ice 446 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698