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

Side by Side Diff: src/IceClFlags.cpp

Issue 1257283004: Iasm and obj lowering for advanced switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 4 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/IceCompiler.cpp » ('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
183 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing")); 179 cl::opt<bool> UseSandboxing("sandbox", cl::desc("Use sandboxing"));
184 180
185 cl::opt<std::string> VerboseFocusOn( 181 cl::opt<std::string> VerboseFocusOn(
186 "verbose-focus", 182 "verbose-focus",
187 cl::desc("Temporarily enable full verbosity for a specific function"), 183 cl::desc("Temporarily enable full verbosity for a specific function"),
188 cl::init("")); 184 cl::init(""));
189 185
190 cl::opt<Ice::FileType> OutFileType( 186 cl::opt<Ice::FileType> OutFileType(
191 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm), 187 "filetype", cl::desc("Output file type"), cl::init(Ice::FT_Iasm),
192 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"), 188 cl::values(clEnumValN(Ice::FT_Elf, "obj", "Native ELF object ('.o') file"),
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 OutFlags.GenerateUnitTestMessages = false; 340 OutFlags.GenerateUnitTestMessages = false;
345 OutFlags.PhiEdgeSplit = false; 341 OutFlags.PhiEdgeSplit = false;
346 OutFlags.RandomNopInsertion = false; 342 OutFlags.RandomNopInsertion = false;
347 OutFlags.RandomRegAlloc = false; 343 OutFlags.RandomRegAlloc = false;
348 OutFlags.ReorderFunctions = false; 344 OutFlags.ReorderFunctions = false;
349 OutFlags.ReorderGlobalVariables = false; 345 OutFlags.ReorderGlobalVariables = false;
350 OutFlags.ReorderPooledConstants = false; 346 OutFlags.ReorderPooledConstants = false;
351 OutFlags.SkipUnimplemented = false; 347 OutFlags.SkipUnimplemented = false;
352 OutFlags.SubzeroTimingEnabled = false; 348 OutFlags.SubzeroTimingEnabled = false;
353 OutFlags.TimeEachFunction = false; 349 OutFlags.TimeEachFunction = false;
354 OutFlags.UseAdvancedSwitchLowering = false;
355 OutFlags.UseSandboxing = false; 350 OutFlags.UseSandboxing = false;
356 // Enum and integer fields. 351 // Enum and integer fields.
357 OutFlags.Opt = Opt_m1; 352 OutFlags.Opt = Opt_m1;
358 OutFlags.OutFileType = FT_Iasm; 353 OutFlags.OutFileType = FT_Iasm;
359 OutFlags.RandomMaxNopsPerInstruction = 0; 354 OutFlags.RandomMaxNopsPerInstruction = 0;
360 OutFlags.RandomNopProbabilityAsPercentage = 0; 355 OutFlags.RandomNopProbabilityAsPercentage = 0;
361 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None; 356 OutFlags.RandomizeAndPoolImmediatesOption = RPI_None;
362 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff; 357 OutFlags.RandomizeAndPoolImmediatesThreshold = 0xffff;
363 OutFlags.ReorderFunctionsWindowSize = 8; 358 OutFlags.ReorderFunctionsWindowSize = 8;
364 OutFlags.TArch = TargetArch_NUM; 359 OutFlags.TArch = TargetArch_NUM;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion); 401 OutFlags.setShouldDoNopInsertion(::ShouldDoNopInsertion);
407 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation); 402 OutFlags.setShouldRandomizeRegAlloc(::RandomizeRegisterAllocation);
408 OutFlags.setSkipUnimplemented(::SkipUnimplemented); 403 OutFlags.setSkipUnimplemented(::SkipUnimplemented);
409 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled); 404 OutFlags.setSubzeroTimingEnabled(::SubzeroTimingEnabled);
410 OutFlags.setTargetArch(::TargetArch); 405 OutFlags.setTargetArch(::TargetArch);
411 OutFlags.setTargetInstructionSet(::TargetInstructionSet); 406 OutFlags.setTargetInstructionSet(::TargetInstructionSet);
412 OutFlags.setTestPrefix(::TestPrefix); 407 OutFlags.setTestPrefix(::TestPrefix);
413 OutFlags.setTimeEachFunction(::TimeEachFunction); 408 OutFlags.setTimeEachFunction(::TimeEachFunction);
414 OutFlags.setTimingFocusOn(::TimingFocusOn); 409 OutFlags.setTimingFocusOn(::TimingFocusOn);
415 OutFlags.setTranslateOnly(::TranslateOnly); 410 OutFlags.setTranslateOnly(::TranslateOnly);
416 OutFlags.setUseAdvancedSwitchLowering(::UseAdvancedSwitchLowering);
417 OutFlags.setUseSandboxing(::UseSandboxing); 411 OutFlags.setUseSandboxing(::UseSandboxing);
418 OutFlags.setVerboseFocusOn(::VerboseFocusOn); 412 OutFlags.setVerboseFocusOn(::VerboseFocusOn);
419 OutFlags.setOutFileType(::OutFileType); 413 OutFlags.setOutFileType(::OutFileType);
420 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction); 414 OutFlags.setMaxNopsPerInstruction(::MaxNopsPerInstruction);
421 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage); 415 OutFlags.setNopProbabilityAsPercentage(::NopProbabilityAsPercentage);
422 OutFlags.setVerbose(VMask); 416 OutFlags.setVerbose(VMask);
423 417
424 // Set for immediates randomization or pooling option. 418 // Set for immediates randomization or pooling option.
425 OutFlags.setRandomizeAndPoolImmediatesOption( 419 OutFlags.setRandomizeAndPoolImmediatesOption(
426 ::RandomizeAndPoolImmediatesOption); 420 ::RandomizeAndPoolImmediatesOption);
(...skipping 18 matching lines...) Expand all
445 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts); 439 OutFlagsExtra.setGenerateBuildAtts(GenerateBuildAtts);
446 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors); 440 OutFlagsExtra.setLLVMVerboseErrors(LLVMVerboseErrors);
447 OutFlagsExtra.setAppName(AppName); 441 OutFlagsExtra.setAppName(AppName);
448 OutFlagsExtra.setInputFileFormat(InputFileFormat); 442 OutFlagsExtra.setInputFileFormat(InputFileFormat);
449 OutFlagsExtra.setIRFilename(IRFilename); 443 OutFlagsExtra.setIRFilename(IRFilename);
450 OutFlagsExtra.setLogFilename(LogFilename); 444 OutFlagsExtra.setLogFilename(LogFilename);
451 OutFlagsExtra.setOutputFilename(OutputFilename); 445 OutFlagsExtra.setOutputFilename(OutputFilename);
452 } 446 }
453 447
454 } // end of namespace Ice 448 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceCompiler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698