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

Side by Side Diff: src/IceTranslator.h

Issue 1216963007: Doxygenize the documentation comments (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase to master Created 5 years, 5 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/IceTimerTree.cpp ('k') | src/IceTranslator.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/IceTranslator.h - ICE to machine code --------*- C++ -*-===// 1 //===- subzero/src/IceTranslator.h - ICE to machine code --------*- 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 the general driver class for translating ICE to 10 /// \file
11 // machine code. 11 /// This file declares the general driver class for translating ICE to
12 // 12 /// machine code.
13 ///
13 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
14 15
15 #ifndef SUBZERO_SRC_ICETRANSLATOR_H 16 #ifndef SUBZERO_SRC_ICETRANSLATOR_H
16 #define SUBZERO_SRC_ICETRANSLATOR_H 17 #define SUBZERO_SRC_ICETRANSLATOR_H
17 18
18 #include "IceDefs.h" 19 #include "IceDefs.h"
19 #include "IceGlobalContext.h" 20 #include "IceGlobalContext.h"
20 21
21 namespace llvm { 22 namespace llvm {
22 class Module; 23 class Module;
23 } // end of namespace llvm 24 } // end of namespace llvm
24 25
25 namespace Ice { 26 namespace Ice {
26 27
27 class ClFlags; 28 class ClFlags;
28 class Cfg; 29 class Cfg;
29 class VariableDeclaration; 30 class VariableDeclaration;
30 class GlobalContext; 31 class GlobalContext;
31 32
32 // Base class for translating ICE to machine code. Derived classes convert 33 /// Base class for translating ICE to machine code. Derived classes convert
33 // other intermediate representations down to ICE, and then call the appropriate 34 /// other intermediate representations down to ICE, and then call the
34 // (inherited) methods to convert ICE into machine instructions. 35 /// appropriate (inherited) methods to convert ICE into machine instructions.
35 class Translator { 36 class Translator {
36 Translator() = delete; 37 Translator() = delete;
37 Translator(const Translator &) = delete; 38 Translator(const Translator &) = delete;
38 Translator &operator=(const Translator &) = delete; 39 Translator &operator=(const Translator &) = delete;
39 40
40 public: 41 public:
41 explicit Translator(GlobalContext *Ctx); 42 explicit Translator(GlobalContext *Ctx);
42 43
43 ~Translator(); 44 ~Translator();
44 const ErrorCode &getErrorStatus() const { return ErrorStatus; } 45 const ErrorCode &getErrorStatus() const { return ErrorStatus; }
(...skipping 18 matching lines...) Expand all
63 /// Prefix to name unnamed names. Errors are put on Ostream. 64 /// Prefix to name unnamed names. Errors are put on Ostream.
64 /// Returns true if there isn't a potential conflict. 65 /// Returns true if there isn't a potential conflict.
65 bool checkIfUnnamedNameSafe(const IceString &Name, const char *Kind, 66 bool checkIfUnnamedNameSafe(const IceString &Name, const char *Kind,
66 const IceString &Prefix); 67 const IceString &Prefix);
67 68
68 uint32_t getNextSequenceNumber() { return NextSequenceNumber++; } 69 uint32_t getNextSequenceNumber() { return NextSequenceNumber++; }
69 70
70 protected: 71 protected:
71 GlobalContext *Ctx; 72 GlobalContext *Ctx;
72 uint32_t NextSequenceNumber; 73 uint32_t NextSequenceNumber;
73 // ErrorCode of the translation. 74 /// ErrorCode of the translation.
74 ErrorCode ErrorStatus; 75 ErrorCode ErrorStatus;
75 }; 76 };
76 77
77 } // end of namespace Ice 78 } // end of namespace Ice
78 79
79 #endif // SUBZERO_SRC_ICETRANSLATOR_H 80 #endif // SUBZERO_SRC_ICETRANSLATOR_H
OLDNEW
« no previous file with comments | « src/IceTimerTree.cpp ('k') | src/IceTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698