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

Unified Diff: src/IceDefs.h

Issue 1216963007: Doxygenize the documentation comments (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 2ee41a72bf8a9790d08cb7d8c3af17eba31452b0..7aa578cce1ab922e2f250113412848dad53af915 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -147,18 +147,18 @@ typedef std::vector<Constant *> ConstantList;
typedef std::vector<VariableDeclaration *> VariableDeclarationList;
-// SizeT is for holding small-ish limits like number of source
-// operands in an instruction. It is used instead of size_t (which
-// may be 64-bits wide) when we want to save space.
+/// SizeT is for holding small-ish limits like number of source
+/// operands in an instruction. It is used instead of size_t (which
+/// may be 64-bits wide) when we want to save space.
typedef uint32_t SizeT;
-// InstNumberT is for holding an instruction number. Instruction
-// numbers are used for representing Variable live ranges.
+/// InstNumberT is for holding an instruction number. Instruction
+/// numbers are used for representing Variable live ranges.
typedef int32_t InstNumberT;
-// A LiveBeginEndMapEntry maps a Variable::Number value to an
-// Inst::Number value, giving the instruction number that begins or
-// ends a variable's live range.
+/// A LiveBeginEndMapEntry maps a Variable::Number value to an
+/// Inst::Number value, giving the instruction number that begins or
+/// ends a variable's live range.
typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry;
typedef std::vector<LiveBeginEndMapEntry,
CfgLocalAllocator<LiveBeginEndMapEntry>> LiveBeginEndMap;
@@ -167,9 +167,9 @@ typedef llvm::BitVector LivenessBV;
typedef uint32_t TimerStackIdT;
typedef uint32_t TimerIdT;
-// Use alignas(MaxCacheLineSize) to isolate variables/fields that
-// might be contended while multithreading. Assumes the maximum cache
-// line size is 64.
+/// Use alignas(MaxCacheLineSize) to isolate variables/fields that
+/// might be contended while multithreading. Assumes the maximum cache
+/// line size is 64.
enum { MaxCacheLineSize = 64 };
// Use ICE_CACHELINE_BOUNDARY to force the next field in a declaration
// list to be aligned to the next cache line.
@@ -178,26 +178,26 @@ enum { MaxCacheLineSize = 64 };
#define ICE_CACHELINE_BOUNDARY \
__attribute__((aligned(MaxCacheLineSize + 0))) int : 0
-// PNaCl is ILP32, so theoretically we should only need 32-bit offsets.
+/// PNaCl is ILP32, so theoretically we should only need 32-bit offsets.
typedef int32_t RelocOffsetT;
enum { RelocAddrSize = 4 };
enum LivenessMode {
- // Basic version of live-range-end calculation. Marks the last uses
- // of variables based on dataflow analysis. Records the set of
- // live-in and live-out variables for each block. Identifies and
- // deletes dead instructions (primarily stores).
+ /// Basic version of live-range-end calculation. Marks the last uses
+ /// of variables based on dataflow analysis. Records the set of
+ /// live-in and live-out variables for each block. Identifies and
+ /// deletes dead instructions (primarily stores).
Liveness_Basic,
- // In addition to Liveness_Basic, also calculate the complete
- // live range for each variable in a form suitable for interference
- // calculation and register allocation.
+ /// In addition to Liveness_Basic, also calculate the complete
+ /// live range for each variable in a form suitable for interference
+ /// calculation and register allocation.
Liveness_Intervals
};
enum RegAllocKind {
- RAK_Global, // full, global register allocation
- RAK_InfOnly // allocation only for infinite-weight Variables
+ RAK_Global, /// full, global register allocation
+ RAK_InfOnly /// allocation only for infinite-weight Variables
};
enum VerboseItem {
@@ -221,9 +221,9 @@ enum VerboseItem {
typedef uint32_t VerboseMask;
enum FileType {
- FT_Elf, // ELF .o file
- FT_Asm, // Assembly .s file
- FT_Iasm // "Integrated assembler" .byte-style .s file
+ FT_Elf, /// ELF .o file
+ FT_Asm, /// Assembly .s file
+ FT_Iasm /// "Integrated assembler" .byte-style .s file
};
typedef llvm::raw_ostream Ostream;
@@ -233,10 +233,10 @@ typedef std::mutex GlobalLockType;
enum ErrorCodes { EC_None = 0, EC_Args, EC_Bitcode, EC_Translation };
-// Wrapper around std::error_code for allowing multiple errors to be
-// folded into one. The current implementation keeps track of the
-// first error, which is likely to be the most useful one, and this
-// could be extended to e.g. collect a vector of errors.
+/// Wrapper around std::error_code for allowing multiple errors to be
+/// folded into one. The current implementation keeps track of the
+/// first error, which is likely to be the most useful one, and this
+/// could be extended to e.g. collect a vector of errors.
class ErrorCode : public std::error_code {
ErrorCode(const ErrorCode &) = delete;
ErrorCode &operator=(const ErrorCode &) = delete;
@@ -255,7 +255,7 @@ private:
bool HasError = false;
};
-// Reverse range adaptors written in terms of llvm::make_range().
+/// Reverse range adaptors written in terms of llvm::make_range().
template <typename T>
llvm::iterator_range<typename T::const_reverse_iterator>
reverse_range(const T &Container) {
@@ -266,7 +266,7 @@ llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
return llvm::make_range(Container.rbegin(), Container.rend());
}
-// Options for pooling and randomization of immediates
+/// Options for pooling and randomization of immediates
jvoung (off chromium) 2015/06/30 22:05:48 If you're up for it while you're here, could add a
ascull 2015/07/06 19:29:08 Done.
enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
} // end of namespace Ice

Powered by Google App Engine
This is Rietveld 408576698