32#include "params/FPC.hh"
49 if (pattern->getPatternNumber() ==
ZERO_RUN) {
59 const int run_length =
77 CompData::addEntry(std::move(pattern));
94std::unique_ptr<DictionaryCompressor<uint32_t>::CompData>
97 return std::unique_ptr<DictionaryCompressor<uint32_t>::CompData>(
std::vector< std::unique_ptr< Pattern > > entries
The patterns matched in the original line.
DictionaryCompressor(const Params &p)
const int zeroRunSizeBits
Number of bits of the zero run size bitfield.
void addEntry(std::unique_ptr< Pattern > pattern) override
FPCCompData(int zeroRunSizeBits)
void setRealSize(int size)
When the real size is set it means that we are adding the main zero run pattern.
int getRunLength() const
Get the number of zeros in the run so far.
void setRunLength(int length)
Set the number of zeros in the run so far.
const int zeroRunSizeBits
Number of bits of the zero run size bitfield.
DictionaryCompressor< uint32_t >::DictionaryEntry DictionaryEntry
std::unique_ptr< DictionaryCompressor::CompData > instantiateDictionaryCompData() const override
Instantiate a compression data of the sub-class compressor.
void addToDictionary(const DictionaryEntry data) override
Implementation of a dictionary based cache compressor.
Definition of the Frequent Pattern Compression cache compressor, as described in "Frequent Pattern Co...
Copyright (c) 2024 Arm Limited All rights reserved.