Go to the documentation of this file.
34 #ifndef __MEM_CACHE_COMPRESSORS_ZERO_HH__
35 #define __MEM_CACHE_COMPRESSORS_ZERO_HH__
44 struct ZeroCompressorParams;
78 static std::map<int, std::string> pattern_names = {
82 return pattern_names[number];
85 std::unique_ptr<Pattern>
87 const int match_location)
const override
89 return PatternFactory::getPattern(bytes, dict_bytes, match_location);
94 std::unique_ptr<Base::CompressionData>
compress(
121 Z, 1, 0, match_location, bytes)
128 #endif //__MEM_CACHE_COMPRESSORS_ZERO_HH__
std::unique_ptr< Base::CompressionData > compress(const std::vector< Base::Chunk > &chunks, Cycles &comp_lat, Cycles &decomp_lat) override
Apply the compression process to the cache line.
PatternNumber
The patterns proposed in the paper.
uint64_t getNumPatterns() const override
Trick function to get the number of patterns.
PatternZ(const DictionaryEntry bytes, const int match_location)
DictionaryCompressor< uint64_t >::DictionaryEntry DictionaryEntry
ZeroCompressorParams Params
Factory< PatternZ, PatternX > PatternFactory
Convenience factory declaration.
void addToDictionary(DictionaryEntry data) override
A template version of the dictionary compressor that allows to choose the dictionary size.
MaskedValuePattern(const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes, const bool allocate=false)
BaseCacheCompressorParams Params
A pattern that compares masked values to a masked portion of a fixed value.
std::string getName(int number) const override
Get meta-name assigned to the given pattern.
UncompressedPattern(const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes)
Cycles is a wrapper class for representing cycle counts, i.e.
std::unique_ptr< Pattern > getPattern(const DictionaryEntry &bytes, const DictionaryEntry &dict_bytes, const int match_location) const override
PatternX(const DictionaryEntry bytes, const int match_location)
A pattern containing the original uncompressed data.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17