refactor(zebin): move files to seperate directory

* Moved zebin related files to zebin directory.
* Moved zebin related code to Zebin namespace.
* Separated zeInfo from zebin elf.
* Seperated zeInfo decoding from zebin decoder.
* Refactored populateKernelPayloadArgument function.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
Krystian Chmielewski
2023-02-16 15:09:51 +00:00
committed by Compute-Runtime-Automation
parent 210b4cfeea
commit 58d3f892a9
39 changed files with 1921 additions and 1940 deletions

View File

@@ -10,7 +10,7 @@
#include "shared/offline_compiler/source/ocloc_arg_helper.h"
#include "shared/source/compiler_interface/external_functions.h"
#include "shared/source/compiler_interface/linker.h"
#include "shared/source/device_binary_format/zebin_decoder.h"
#include "shared/source/device_binary_format/zebin/zebin_decoder.h"
#include "shared/source/program/kernel_info.h"
#include "shared/source/program/program_info.h"
@@ -63,10 +63,10 @@ int validate(const std::vector<std::string> &args, OclocArgHelper *argHelper) {
NEO::DecodeError decodeResult;
if (NEO::Elf::isElf<NEO::Elf::EI_CLASS_32>(deviceBinary)) {
auto elf = NEO::Elf::decodeElf<NEO::Elf::EI_CLASS_32>(deviceBinary, errors, warnings);
decodeResult = NEO::decodeZebin(programInfo, elf, errors, warnings);
decodeResult = NEO::Zebin::decodeZebin(programInfo, elf, errors, warnings);
} else {
auto elf = NEO::Elf::decodeElf<NEO::Elf::EI_CLASS_64>(deviceBinary, errors, warnings);
decodeResult = NEO::decodeZebin(programInfo, elf, errors, warnings);
decodeResult = NEO::Zebin::decodeZebin(programInfo, elf, errors, warnings);
}
if (false == warnings.empty()) {