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

Side by Side Diff: include/llvm/Bitcode/NaCl/NaClBitcodeAbbrevDist.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/NaClBitCodes.h ('k') | include/llvm/Bitcode/NaCl/NaClBitcodeDist.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===-- NaClBitcodeAbbrevDist.h ---------------------------------------------=== // 1 //===-- NaClBitcodeAbbrevDist.h ---------------------------------------------=== //
2 // Defines distribution maps for abbreviations associated with 2 // Defines distribution maps for abbreviations associated with
3 // bitcode records. 3 // bitcode records.
4 // 4 //
5 // The LLVM Compiler Infrastructure 5 // The LLVM Compiler Infrastructure
6 // 6 //
7 // This file is distributed under the University of Illinois Open Source 7 // This file is distributed under the University of Illinois Open Source
8 // License. See LICENSE.TXT for details. 8 // License. See LICENSE.TXT for details.
9 // 9 //
10 //===----------------------------------------------------------------------===// 10 //===----------------------------------------------------------------------===//
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 virtual const char *GetValueHeader() const; 59 virtual const char *GetValueHeader() const;
60 60
61 virtual void PrintRowValue(raw_ostream &Stream, 61 virtual void PrintRowValue(raw_ostream &Stream,
62 NaClBitcodeDistValue Value, 62 NaClBitcodeDistValue Value,
63 const NaClBitcodeDist *Distribution) const; 63 const NaClBitcodeDist *Distribution) const;
64 64
65 virtual const SmallVectorImpl<NaClBitcodeDist*> * 65 virtual const SmallVectorImpl<NaClBitcodeDist*> *
66 GetNestedDistributions() const; 66 GetNestedDistributions() const;
67 67
68 NaClBitcodeDist *GetCodeDist() { 68 NaClBitcodeDist &GetCodeDist() {
69 return &CodeDist; 69 return CodeDist;
70 } 70 }
71 71
72 private: 72 private:
73 // The block id associated with the abbreviation. 73 // The block id associated with the abbreviation.
74 unsigned BlockID; 74 unsigned BlockID;
75 75
76 // Nested blocks used by GetNestedDistributions. 76 // Nested blocks used by GetNestedDistributions.
77 SmallVector<NaClBitcodeDist*, 1> NestedDists; 77 SmallVector<NaClBitcodeDist*, 1> NestedDists;
78 78
79 /// The records associated with the given abbreviation. 79 /// The records associated with the given abbreviation.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 private: 115 private:
116 // The block id associated with the abbreviations in this 116 // The block id associated with the abbreviations in this
117 // distribution map. 117 // distribution map.
118 unsigned BlockID; 118 unsigned BlockID;
119 }; 119 };
120 120
121 } 121 }
122 122
123 #endif 123 #endif
OLDNEW
« no previous file with comments | « include/llvm/Bitcode/NaCl/NaClBitCodes.h ('k') | include/llvm/Bitcode/NaCl/NaClBitcodeDist.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698