mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Decoder decodes the binary to kernel heaps and patch token data, which is in a human readible form. Encoder encodes it back to binary form. Change-Id: Id07b1294ba24360e90c824171741cf14bd43cfad
29 lines
886 B
C++
29 lines
886 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "offline_compiler/decoder/binary_decoder.h"
|
|
|
|
struct MockDecoder : public BinaryDecoder {
|
|
MockDecoder() : BinaryDecoder("", "", ""){};
|
|
MockDecoder(const std::string &file, const std::string &patch, const std::string &dump)
|
|
: BinaryDecoder(file, patch, dump){};
|
|
using BinaryDecoder::binaryFile;
|
|
using BinaryDecoder::decode;
|
|
using BinaryDecoder::getSize;
|
|
using BinaryDecoder::kernelHeader;
|
|
using BinaryDecoder::parseTokens;
|
|
using BinaryDecoder::patchTokens;
|
|
using BinaryDecoder::pathToDump;
|
|
using BinaryDecoder::pathToPatch;
|
|
using BinaryDecoder::processBinary;
|
|
using BinaryDecoder::processKernel;
|
|
using BinaryDecoder::programHeader;
|
|
using BinaryDecoder::readPatchTokens;
|
|
using BinaryDecoder::readStructFields;
|
|
};
|