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

Side by Side Diff: src/IceClFlags.h

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 4 years, 9 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.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
11 /// \brief Declares Ice::ClFlags which implements command line processing. 11 /// \brief Declares Ice::ClFlags which implements command line processing.
12 /// 12 ///
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICECLFLAGS_H 15 #ifndef SUBZERO_SRC_ICECLFLAGS_H
16 #define SUBZERO_SRC_ICECLFLAGS_H 16 #define SUBZERO_SRC_ICECLFLAGS_H
17 17
18 #include "IceDefs.h" 18 #include "IceDefs.h"
19 #include "IceTypes.h" 19 #include "IceTypes.h"
20 20
21 namespace Ice { 21 namespace Ice {
22 22
23 // TODO(stichnot): Fix the separation between ClFlags and ClFlagsExtra.
24 //
25 // The original intention was that ClFlags would be the core set of flags for a
26 // release build, while ClFlagsExtra had optional flags that would be locked to
27 // default values in a release build. However, the division has evolved to be
28 // fairly arbitrary.
29 //
30 // The variable flags in a release (browser) build should be limited to opt
31 // level, number of threads, output file, and perhaps input file.
32 //
33 // The core flags should remain part of the GlobalContext object, but the
34 // optional flags might as well be global, i.e. static members of GlobalContext,
John 2016/03/06 22:39:38 If they are global, please make them, uh, global!
Jim Stichnoth 2016/03/07 00:03:10 Do you mean just pull them out of the Ice::GlobalC
John 2016/03/07 16:41:08 Yes, just move it to the Ice namespace. There's ve
35 // so that they are easily accessed from anywhere without needing to plumb in
36 // the GlobalContext object.
37
23 class ClFlagsExtra; 38 class ClFlagsExtra;
24 39
25 /// Define variables which configure translation and related support functions. 40 /// Define variables which configure translation and related support functions.
26 class ClFlags { 41 class ClFlags {
27 ClFlags(const ClFlags &) = delete; 42 ClFlags(const ClFlags &) = delete;
28 ClFlags &operator=(const ClFlags &) = delete; 43 ClFlags &operator=(const ClFlags &) = delete;
29 44
30 public: 45 public:
31 using StringVector = std::vector<IceString>; 46 using StringVector = std::vector<IceString>;
32 47
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 /// see anonymous_namespace{IceClFlags.cpp}::NumThreads 507 /// see anonymous_namespace{IceClFlags.cpp}::NumThreads
493 508
494 size_t NumTranslationThreads; // 0 means completely sequential 509 size_t NumTranslationThreads; // 0 means completely sequential
495 /// see anonymous_namespace{IceClFlags.cpp}::RandomSeed 510 /// see anonymous_namespace{IceClFlags.cpp}::RandomSeed
496 uint64_t RandomSeed; 511 uint64_t RandomSeed;
497 }; 512 };
498 513
499 } // end of namespace Ice 514 } // end of namespace Ice
500 515
501 #endif // SUBZERO_SRC_ICECLFLAGS_H 516 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698