diff options
author | Michelle McDaniel <adiaaida@gmail.com> | 2016-08-09 13:15:05 -0700 |
---|---|---|
committer | Michelle McDaniel <adiaaida@gmail.com> | 2016-08-11 09:53:41 -0700 |
commit | 36a2b906c008cd3693a9ab5aef7b4402addd6c74 (patch) | |
tree | 27333c6f26304490169825ae1c17484534246dc6 /src/jit/compilerbitsettraits.h | |
parent | ab7d6a8df73d3d89210a778338feaa9fedf4146a (diff) | |
download | coreclr-36a2b906c008cd3693a9ab5aef7b4402addd6c74.tar.gz coreclr-36a2b906c008cd3693a9ab5aef7b4402addd6c74.tar.bz2 coreclr-36a2b906c008cd3693a9ab5aef7b4402addd6c74.zip |
Reformat jit sources with clang-tidy and format
This change is the result of running clang-tidy and clang-format on jit
sources.
Diffstat (limited to 'src/jit/compilerbitsettraits.h')
-rw-r--r-- | src/jit/compilerbitsettraits.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/jit/compilerbitsettraits.h b/src/jit/compilerbitsettraits.h index 29881d4c9b..4365c518d7 100644 --- a/src/jit/compilerbitsettraits.h +++ b/src/jit/compilerbitsettraits.h @@ -11,12 +11,12 @@ #include "bitsetasshortlong.h" /////////////////////////////////////////////////////////////////////////////// -// +// // CompAllocBitSetTraits: a base class for other BitSet traits classes. -// +// // The classes in this file define "BitSetTraits" arguments to the "BitSetOps" type, ones that assume that // Compiler* is the "Env" type. -// +// // This class just captures the compiler's allocator as an IAllocator. // class CompAllocBitSetTraits @@ -30,14 +30,14 @@ public: }; /////////////////////////////////////////////////////////////////////////////// -// +// // TrackedVarBitSetTraits -// +// // This class is customizes the bit set to represent sets of tracked local vars. // The size of the bitset is determined by the # of tracked locals (up to some internal // maximum), and the Compiler* tracks the tracked local epochs. // -class TrackedVarBitSetTraits: public CompAllocBitSetTraits +class TrackedVarBitSetTraits : public CompAllocBitSetTraits { public: static inline unsigned GetSize(Compiler* comp); @@ -50,16 +50,16 @@ public: }; /////////////////////////////////////////////////////////////////////////////// -// +// // AllVarBitSetTraits -// +// // This class is customizes the bit set to represent sets of all local vars (tracked or not) -- // at least up to some maximum index. (This index is private to the Compiler, and it is // the responsibility of the compiler not to use indices >= this maximum.) // We rely on the fact that variables are never deleted, and therefore use the // total # of locals as the epoch number (up to the maximum). // -class AllVarBitSetTraits: public CompAllocBitSetTraits +class AllVarBitSetTraits : public CompAllocBitSetTraits { public: static inline unsigned GetSize(Compiler* comp); @@ -72,9 +72,9 @@ public: }; /////////////////////////////////////////////////////////////////////////////// -// +// // BasicBlockBitSetTraits -// +// // This class is customizes the bit set to represent sets of BasicBlocks. // The size of the bitset is determined by maximum assigned BasicBlock number // (Compiler::fgBBNumMax) (Note that fgBBcount is not equal to this during inlining, @@ -83,7 +83,7 @@ public: // Thus, if you only care about the inlinee, during inlining, this bit set will waste // the lower numbered block bits.) The Compiler* tracks the BasicBlock epochs. // -class BasicBlockBitSetTraits: public CompAllocBitSetTraits +class BasicBlockBitSetTraits : public CompAllocBitSetTraits { public: static inline unsigned GetSize(Compiler* comp); @@ -96,23 +96,21 @@ public: }; /////////////////////////////////////////////////////////////////////////////// -// +// // BitVecTraits -// +// // This class simplifies creation and usage of "ShortLong" bitsets. // struct BitVecTraits { private: - unsigned size; + unsigned size; Compiler* comp; public: - - BitVecTraits(unsigned size, Compiler* comp) - : size(size) - , comp(comp) - { } + BitVecTraits(unsigned size, Compiler* comp) : size(size), comp(comp) + { + } static inline IAllocator* GetAllocator(BitVecTraits* b); |