OLD | NEW |
1 //===-- NaClBitcodeSizeDist.h ---------------------------------------------===// | 1 //===-- NaClBitcodeSizeDist.h ---------------------------------------------===// |
2 // Defines distribution maps for bitcode record sizes (arity). | 2 // Defines distribution maps for bitcode record sizes (arity). |
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 // |
11 // Defines distribution maps for tracking bitcode record sizes | 11 // Defines distribution maps for tracking bitcode record sizes |
12 // (arity). | 12 // (arity). |
13 | 13 |
14 #ifndef LLVM_BITCODE_NACL_NACLBITCODESIZEDIST_H | 14 #ifndef LLVM_BITCODE_NACL_NACLBITCODESIZEDIST_H |
15 #define LLVM_BITCODE_NACL_NACLBITCODESIZEDIST_H | 15 #define LLVM_BITCODE_NACL_NACLBITCODESIZEDIST_H |
16 | 16 |
17 #include "llvm/Bitcode/NaCl/NaClBitcodeDist.h" | 17 #include "llvm/Bitcode/NaCl/NaClBitcodeDist.h" |
18 #include "llvm/Bitcode/NaCl/NaClBitcodeValueDist.h" | 18 #include "llvm/Bitcode/NaCl/NaClBitcodeValueDist.h" |
19 | 19 |
20 namespace llvm { | 20 namespace llvm { |
21 | 21 |
22 /// Collects the number of bitcode record instances with the same number | 22 /// Collects the number of bitcode record instances with the same number |
23 /// of elements in the vector of values, with nested value distribution maps. | 23 /// of elements in the vector of values, with nested value distribution maps. |
24 class NaClBitcodeSizeDistElement : public NaClBitcodeDistElement { | 24 class NaClBitcodeSizeDistElement : public NaClBitcodeDistElement { |
25 NaClBitcodeSizeDistElement(const NaClBitcodeSizeDistElement&) | 25 NaClBitcodeSizeDistElement(const NaClBitcodeSizeDistElement&) = delete; |
26 LLVM_DELETED_FUNCTION; | 26 void operator=(const NaClBitcodeSizeDistElement&) = delete; |
27 void operator=(const NaClBitcodeSizeDistElement&) LLVM_DELETED_FUNCTION; | |
28 | 27 |
29 public: | 28 public: |
30 static bool classof(const NaClBitcodeDistElement *Element) { | 29 static bool classof(const NaClBitcodeDistElement *Element) { |
31 return Element->getKind() >= RDE_SizeDist && | 30 return Element->getKind() >= RDE_SizeDist && |
32 Element->getKind() < RDE_SizeDistLast; | 31 Element->getKind() < RDE_SizeDistLast; |
33 } | 32 } |
34 | 33 |
35 NaClBitcodeSizeDistElement() | 34 NaClBitcodeSizeDistElement() |
36 : NaClBitcodeDistElement(RDE_SizeDist), | 35 : NaClBitcodeDistElement(RDE_SizeDist), |
37 ValueIndexDist(NaClBitcodeDist::RecordStorage, | 36 ValueIndexDist(NaClBitcodeDist::RecordStorage, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Nested blocks used by GetNestedDistributions. | 69 // Nested blocks used by GetNestedDistributions. |
71 SmallVector<NaClBitcodeDist*, 1> NestedDists; | 70 SmallVector<NaClBitcodeDist*, 1> NestedDists; |
72 | 71 |
73 // The value distributions associated with records of the given size. | 72 // The value distributions associated with records of the given size. |
74 NaClBitcodeDist ValueIndexDist; | 73 NaClBitcodeDist ValueIndexDist; |
75 }; | 74 }; |
76 | 75 |
77 } | 76 } |
78 | 77 |
79 #endif | 78 #endif |
OLD | NEW |