| 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 /// \file | 10 /// \file |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 /// User defined constructor. | 75 /// User defined constructor. |
| 76 ClFlags() { resetClFlags(); } | 76 ClFlags() { resetClFlags(); } |
| 77 | 77 |
| 78 /// The command line flags. | 78 /// The command line flags. |
| 79 static ClFlags Flags; | 79 static ClFlags Flags; |
| 80 | 80 |
| 81 /// \brief Parse commmand line options for Subzero. | 81 /// \brief Parse commmand line options for Subzero. |
| 82 /// | 82 /// |
| 83 /// This is done use cl::ParseCommandLineOptions() and the static variables of | 83 /// This is done use cl::ParseCommandLineOptions() and the static variables of |
| 84 /// type cl::opt defined in IceClFlags.cpp | 84 /// type cl::opt defined in IceClFlags.cpp |
| 85 static void parseFlags(int argc, char *argv[]); | 85 static void parseFlags(int argc, const char *const *argv); |
| 86 | 86 |
| 87 /// Reset all configuration options to their nominal values. | 87 /// Reset all configuration options to their nominal values. |
| 88 void resetClFlags(); | 88 void resetClFlags(); |
| 89 | 89 |
| 90 /// \brief Retrieve the configuration option state | 90 /// \brief Retrieve the configuration option state |
| 91 /// | 91 /// |
| 92 /// This is defined by static variables | 92 /// This is defined by static variables |
| 93 /// anonymous_namespace{IceClFlags.cpp}::AllowErrorRecoveryObj, | 93 /// anonymous_namespace{IceClFlags.cpp}::AllowErrorRecoveryObj, |
| 94 /// anonymous_namespace{IceClFlags.cpp}::AllowIacaMarksObj, | 94 /// anonymous_namespace{IceClFlags.cpp}::AllowIacaMarksObj, |
| 95 /// ... | 95 /// ... |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 RangeSpec TimingFocus; | 181 RangeSpec TimingFocus; |
| 182 RangeSpec TranslateOnly; | 182 RangeSpec TranslateOnly; |
| 183 RangeSpec VerboseFocus; | 183 RangeSpec VerboseFocus; |
| 184 }; | 184 }; |
| 185 | 185 |
| 186 inline const ClFlags &getFlags() { return ClFlags::Flags; } | 186 inline const ClFlags &getFlags() { return ClFlags::Flags; } |
| 187 | 187 |
| 188 } // end of namespace Ice | 188 } // end of namespace Ice |
| 189 | 189 |
| 190 #endif // SUBZERO_SRC_ICECLFLAGS_H | 190 #endif // SUBZERO_SRC_ICECLFLAGS_H |
| OLD | NEW |