| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|