Karl Schimpf | 8d7abae | 2014-07-07 14:50:30 -0700 | [diff] [blame] | 1 | //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// |
| 2 | // |
| 3 | // The Subzero Code Generator |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file declares command line flags controlling translation. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
| 14 | #ifndef SUBZERO_SRC_ICECLFLAGS_H |
| 15 | #define SUBZERO_SRC_ICECLFLAGS_H |
| 16 | |
Karl Schimpf | 5ee234a | 2014-09-12 10:41:40 -0700 | [diff] [blame] | 17 | #include "IceTypes.def" |
| 18 | |
Karl Schimpf | 8d7abae | 2014-07-07 14:50:30 -0700 | [diff] [blame] | 19 | namespace Ice { |
| 20 | |
| 21 | class ClFlags { |
| 22 | public: |
| 23 | ClFlags() |
| 24 | : DisableInternal(false), SubzeroTimingEnabled(false), |
Jim Stichnoth | 2a063e2 | 2014-10-08 11:24:51 -0700 | [diff] [blame] | 25 | DisableTranslation(false), FunctionSections(false), DataSections(false), |
Jan Voung | 08c3bcd | 2014-12-01 17:55:16 -0800 | [diff] [blame] | 26 | UseELFWriter(false), UseIntegratedAssembler(false), |
| 27 | UseSandboxing(false), PhiEdgeSplit(false), DecorateAsm(false), |
| 28 | DumpStats(false), AllowUninitializedGlobals(false), |
| 29 | TimeEachFunction(false), DisableIRGeneration(false), |
Karl Schimpf | 2e7daef | 2015-01-09 13:04:13 -0800 | [diff] [blame^] | 30 | AllowErrorRecovery(false), GenerateUnitTestMessages(false), |
Jan Voung | 08c3bcd | 2014-12-01 17:55:16 -0800 | [diff] [blame] | 31 | DefaultGlobalPrefix(""), DefaultFunctionPrefix(""), TimingFocusOn(""), |
| 32 | VerboseFocusOn(""), TranslateOnly("") {} |
Karl Schimpf | 8d7abae | 2014-07-07 14:50:30 -0700 | [diff] [blame] | 33 | bool DisableInternal; |
| 34 | bool SubzeroTimingEnabled; |
| 35 | bool DisableTranslation; |
Jim Stichnoth | 989a703 | 2014-08-08 10:13:44 -0700 | [diff] [blame] | 36 | bool FunctionSections; |
Karl Schimpf | e3f64d0 | 2014-10-07 10:38:22 -0700 | [diff] [blame] | 37 | bool DataSections; |
Jan Voung | 08c3bcd | 2014-12-01 17:55:16 -0800 | [diff] [blame] | 38 | bool UseELFWriter; |
Jan Voung | 8acded0 | 2014-09-22 18:02:25 -0700 | [diff] [blame] | 39 | bool UseIntegratedAssembler; |
Jim Stichnoth | bfb03e5 | 2014-08-26 10:29:05 -0700 | [diff] [blame] | 40 | bool UseSandboxing; |
Jim Stichnoth | 088b2be | 2014-10-23 12:02:08 -0700 | [diff] [blame] | 41 | bool PhiEdgeSplit; |
Jim Stichnoth | 3d44fe8 | 2014-11-01 10:10:18 -0700 | [diff] [blame] | 42 | bool DecorateAsm; |
Jim Stichnoth | 1873560 | 2014-09-16 19:59:35 -0700 | [diff] [blame] | 43 | bool DumpStats; |
Karl Schimpf | e3f64d0 | 2014-10-07 10:38:22 -0700 | [diff] [blame] | 44 | bool AllowUninitializedGlobals; |
Jim Stichnoth | 8363a06 | 2014-10-07 10:02:38 -0700 | [diff] [blame] | 45 | bool TimeEachFunction; |
Karl Schimpf | 6fcbddd | 2014-11-06 09:49:24 -0800 | [diff] [blame] | 46 | bool DisableIRGeneration; |
Karl Schimpf | 2e7daef | 2015-01-09 13:04:13 -0800 | [diff] [blame^] | 47 | bool AllowErrorRecovery; |
| 48 | bool GenerateUnitTestMessages; |
Karl Schimpf | 5ee234a | 2014-09-12 10:41:40 -0700 | [diff] [blame] | 49 | IceString DefaultGlobalPrefix; |
| 50 | IceString DefaultFunctionPrefix; |
Jim Stichnoth | 8363a06 | 2014-10-07 10:02:38 -0700 | [diff] [blame] | 51 | IceString TimingFocusOn; |
| 52 | IceString VerboseFocusOn; |
Jim Stichnoth | 088b2be | 2014-10-23 12:02:08 -0700 | [diff] [blame] | 53 | IceString TranslateOnly; |
Karl Schimpf | 8d7abae | 2014-07-07 14:50:30 -0700 | [diff] [blame] | 54 | }; |
Jim Stichnoth | 989a703 | 2014-08-08 10:13:44 -0700 | [diff] [blame] | 55 | |
| 56 | } // end of namespace Ice |
Karl Schimpf | 8d7abae | 2014-07-07 14:50:30 -0700 | [diff] [blame] | 57 | |
| 58 | #endif // SUBZERO_SRC_ICECLFLAGS_H |