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

Side by Side Diff: include/llvm/Bitcode/NaCl/NaClCompressCodeDist.h

Issue 154603002: Make pnacl-bccompress add abbreviations for obvious constants. (Closed) Base URL: http://git.chromium.org/native_client/pnacl-llvm.git@master
Patch Set: Fixs nits associated with Patch Set 4. Created 6 years, 10 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 | « include/llvm/Bitcode/NaCl/NaClBitcodeDist.h ('k') | lib/Bitcode/NaCl/Reader/CMakeLists.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- NaClCompressCodeDist.h -------------------------------------------===// 1 //===-- NaClCompressCodeDist.h -------------------------------------------===//
2 // Defines distribution maps for record codes for pnacl-bccompress. 2 // Defines distribution maps for record codes for pnacl-bccompress.
3 // 3 //
4 // The LLVM Compiler Infrastructure 4 // The LLVM Compiler Infrastructure
5 // 5 //
6 // This file is distributed under the University of Illinois Open Source 6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details. 7 // License. See LICENSE.TXT for details.
8 // 8 //
9 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===//
10 10
(...skipping 24 matching lines...) Expand all
35 virtual ~NaClCompressCodeDistElement(); 35 virtual ~NaClCompressCodeDistElement();
36 36
37 virtual NaClBitcodeDistElement *CreateElement( 37 virtual NaClBitcodeDistElement *CreateElement(
38 NaClBitcodeDistValue Value) const; 38 NaClBitcodeDistValue Value) const;
39 39
40 virtual void AddRecord(const NaClBitcodeRecord &Record); 40 virtual void AddRecord(const NaClBitcodeRecord &Record);
41 41
42 virtual const SmallVectorImpl<NaClBitcodeDist*> * 42 virtual const SmallVectorImpl<NaClBitcodeDist*> *
43 GetNestedDistributions() const; 43 GetNestedDistributions() const;
44 44
45 NaClBitcodeDist *GetSizeDist() { 45 NaClBitcodeDist &GetSizeDist() {
46 return &SizeDist; 46 return SizeDist;
47 } 47 }
48 48
49 /// The sentinel used to generate instances of this in 49 /// The sentinel used to generate instances of this in
50 /// a record code distribution map. 50 /// a record code distribution map.
51 static NaClCompressCodeDistElement Sentinel; 51 static NaClCompressCodeDistElement Sentinel;
52 52
53 private: 53 private:
54 // Nested blocks used by GetNestedDistributions. 54 // Nested blocks used by GetNestedDistributions.
55 SmallVector<NaClBitcodeDist*, 1> NestedDists; 55 SmallVector<NaClBitcodeDist*, 1> NestedDists;
56 56
57 /// The distribution of values, based on size. 57 /// The distribution of values, based on size.
58 NaClBitcodeDist SizeDist; 58 NaClBitcodeDist SizeDist;
59 }; 59 };
60 60
61 } 61 }
62 62
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « include/llvm/Bitcode/NaCl/NaClBitcodeDist.h ('k') | lib/Bitcode/NaCl/Reader/CMakeLists.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698