Go to the documentation of this file.
34 #ifndef __MEM_CACHE_COMPRESSORS_REPEATED_QWORDS_HH__
35 #define __MEM_CACHE_COMPRESSORS_REPEATED_QWORDS_HH__
44 struct RepeatedQwordsCompressorParams;
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(
99 typedef RepeatedQwordsCompressorParams
Params;
127 #endif //__MEM_CACHE_COMPRESSORS_REPEATED_QWORDS_HH__
PatternNumber
The patterns proposed in the paper.
~RepeatedQwords()=default
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)
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.
A template version of the dictionary compressor that allows to choose the dictionary size.
void addToDictionary(DictionaryEntry data) override
BaseCacheCompressorParams Params
std::string getName(int number) const override
Get meta-name assigned to the given pattern.
RepeatedQwords(const Params *p)
uint64_t getNumPatterns() const override
Trick function to get the number of patterns.
RepeatedQwordsCompressorParams Params
UncompressedPattern(const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes)
PatternM(const DictionaryEntry bytes, const int match_location)
LocatedMaskedPattern(const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes, const bool allocate=true)
DictionaryCompressor< uint64_t >::DictionaryEntry DictionaryEntry
Cycles is a wrapper class for representing cycle counts, i.e.
Factory< PatternM, PatternX > PatternFactory
Convenience factory declaration.
A pattern that narrows the MaskedPattern by allowing a only single possible dictionary entry to be ma...
A pattern containing the original uncompressed data.
Generated on Wed Sep 30 2020 14:02:12 for gem5 by doxygen 1.8.17