| OLD | NEW |
| 1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// | 1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// |
| 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 // This file declares command line flags controlling translation. | 10 // This file declares command line flags controlling translation. |
| 11 // | 11 // |
| 12 //===----------------------------------------------------------------------===// | 12 //===----------------------------------------------------------------------===// |
| 13 | 13 |
| 14 #ifndef SUBZERO_SRC_ICECLFLAGS_H | 14 #ifndef SUBZERO_SRC_ICECLFLAGS_H |
| 15 #define SUBZERO_SRC_ICECLFLAGS_H | 15 #define SUBZERO_SRC_ICECLFLAGS_H |
| 16 | 16 |
| 17 #include "IceTypes.def" | 17 #include "IceTypes.def" |
| 18 | 18 |
| 19 namespace Ice { | 19 namespace Ice { |
| 20 | 20 |
| 21 class ClFlags { | 21 class ClFlags { |
| 22 public: | 22 public: |
| 23 ClFlags() | 23 ClFlags() |
| 24 : DisableInternal(false), SubzeroTimingEnabled(false), | 24 : DisableInternal(false), SubzeroTimingEnabled(false), |
| 25 DisableTranslation(false), FunctionSections(false), DataSections(false), | 25 DisableTranslation(false), FunctionSections(false), DataSections(false), |
| 26 UseELFWriter(false), UseIntegratedAssembler(false), | 26 UseELFWriter(false), UseIntegratedAssembler(false), |
| 27 UseSandboxing(false), PhiEdgeSplit(false), DecorateAsm(false), | 27 UseSandboxing(false), PhiEdgeSplit(false), DecorateAsm(false), |
| 28 DumpStats(false), AllowUninitializedGlobals(false), | 28 DumpStats(false), AllowUninitializedGlobals(false), |
| 29 TimeEachFunction(false), DisableIRGeneration(false), | 29 TimeEachFunction(false), DisableIRGeneration(false), |
| 30 AllowErrorRecovery(false), GenerateUnitTestMessages(false), | 30 AllowErrorRecovery(false), StubConstantCalls(false), |
| 31 NumTranslationThreads(0), DefaultGlobalPrefix(""), | 31 GenerateUnitTestMessages(false), NumTranslationThreads(0), |
| 32 DefaultFunctionPrefix(""), TimingFocusOn(""), VerboseFocusOn(""), | 32 DefaultGlobalPrefix(""), DefaultFunctionPrefix(""), TimingFocusOn(""), |
| 33 TranslateOnly("") {} | 33 VerboseFocusOn(""), TranslateOnly("") {} |
| 34 bool DisableInternal; | 34 bool DisableInternal; |
| 35 bool SubzeroTimingEnabled; | 35 bool SubzeroTimingEnabled; |
| 36 bool DisableTranslation; | 36 bool DisableTranslation; |
| 37 bool FunctionSections; | 37 bool FunctionSections; |
| 38 bool DataSections; | 38 bool DataSections; |
| 39 bool UseELFWriter; | 39 bool UseELFWriter; |
| 40 bool UseIntegratedAssembler; | 40 bool UseIntegratedAssembler; |
| 41 bool UseSandboxing; | 41 bool UseSandboxing; |
| 42 bool PhiEdgeSplit; | 42 bool PhiEdgeSplit; |
| 43 bool DecorateAsm; | 43 bool DecorateAsm; |
| 44 bool DumpStats; | 44 bool DumpStats; |
| 45 bool AllowUninitializedGlobals; | 45 bool AllowUninitializedGlobals; |
| 46 bool TimeEachFunction; | 46 bool TimeEachFunction; |
| 47 bool DisableIRGeneration; | 47 bool DisableIRGeneration; |
| 48 bool AllowErrorRecovery; | 48 bool AllowErrorRecovery; |
| 49 bool StubConstantCalls; |
| 49 bool GenerateUnitTestMessages; | 50 bool GenerateUnitTestMessages; |
| 50 size_t NumTranslationThreads; // 0 means completely sequential | 51 size_t NumTranslationThreads; // 0 means completely sequential |
| 51 IceString DefaultGlobalPrefix; | 52 IceString DefaultGlobalPrefix; |
| 52 IceString DefaultFunctionPrefix; | 53 IceString DefaultFunctionPrefix; |
| 53 IceString TimingFocusOn; | 54 IceString TimingFocusOn; |
| 54 IceString VerboseFocusOn; | 55 IceString VerboseFocusOn; |
| 55 IceString TranslateOnly; | 56 IceString TranslateOnly; |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // end of namespace Ice | 59 } // end of namespace Ice |
| 59 | 60 |
| 60 #endif // SUBZERO_SRC_ICECLFLAGS_H | 61 #endif // SUBZERO_SRC_ICECLFLAGS_H |
| OLD | NEW |