Go to the documentation of this file.
34 #ifndef __MEM_CACHE_COMPRESSORS_REPEATED_QWORDS_HH__
35 #define __MEM_CACHE_COMPRESSORS_REPEATED_QWORDS_HH__
47 struct RepeatedQwordsCompressorParams;
83 static std::map<int, std::string> pattern_names = {
87 return pattern_names[number];
90 std::unique_ptr<Pattern>
92 const int match_location)
const override
94 return PatternFactory::getPattern(bytes, dict_bytes, match_location);
99 std::unique_ptr<Base::CompressionData>
compress(
104 typedef RepeatedQwordsCompressorParams
Params;
133 #endif //__MEM_CACHE_COMPRESSORS_REPEATED_QWORDS_HH__
std::unique_ptr< Pattern > getPattern(const DictionaryEntry &bytes, const DictionaryEntry &dict_bytes, const int match_location) const override
A template version of the dictionary compressor that allows to choose the dictionary size.
PatternX(const DictionaryEntry bytes, const int match_location)
BaseCacheCompressorParams Params
A pattern containing the original uncompressed data.
void addToDictionary(DictionaryEntry data) override
PatternM(const DictionaryEntry bytes, const int match_location)
RepeatedQwordsCompressorParams Params
Cycles is a wrapper class for representing cycle counts, i.e.
PatternNumber
The patterns proposed in the paper.
DictionaryCompressor< uint64_t >::DictionaryEntry DictionaryEntry
RepeatedQwords(const Params &p)
Factory< PatternM, PatternX > PatternFactory
Convenience factory declaration.
A pattern that narrows the MaskedPattern by allowing a only single possible dictionary entry to be ma...
LocatedMaskedPattern(const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes, const bool allocate=true)
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.
uint64_t getNumPatterns() const override
Trick function to get the number of patterns.
~RepeatedQwords()=default
std::string getName(int number) const override
Get meta-name assigned to the given pattern.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
UncompressedPattern(const int number, const uint64_t code, const uint64_t metadata_length, const int match_location, const DictionaryEntry bytes)
Generated on Sun Jul 30 2023 01:56:57 for gem5 by doxygen 1.8.17