mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +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
26 lines
739 B
C++
26 lines
739 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "offline_compiler/decoder/binary_encoder.h"
|
|
|
|
struct MockEncoder : public BinaryEncoder {
|
|
MockEncoder() : BinaryEncoder("", ""){};
|
|
MockEncoder(const std::string &dump, const std::string &elf)
|
|
: BinaryEncoder(dump, elf){};
|
|
using BinaryEncoder::calculatePatchListSizes;
|
|
using BinaryEncoder::copyBinaryToBinary;
|
|
using BinaryEncoder::createElf;
|
|
using BinaryEncoder::elfName;
|
|
using BinaryEncoder::encode;
|
|
using BinaryEncoder::pathToDump;
|
|
using BinaryEncoder::processBinary;
|
|
using BinaryEncoder::processKernel;
|
|
using BinaryEncoder::write;
|
|
using BinaryEncoder::writeDeviceBinary;
|
|
};
|