mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-23 11:03:02 +08:00
elflib reimplementation - initial commit
Includes: -add explicit definition of enum types -replace NULL for nullptr -add namespace for constants -replace c-style casting -add SH_FLAG_NONE for consistency Change-Id: I3eb8d26cc6b549e91a940ae0d3c095a9f96785f2
This commit is contained in:
committed by
sys_ocldev
parent
6e03446a22
commit
282f335269
@@ -81,7 +81,7 @@ cl_int Program::link(
|
||||
|
||||
buildStatus = CL_BUILD_IN_PROGRESS;
|
||||
|
||||
pElfWriter = CLElfLib::CElfWriter::create(CLElfLib::EH_TYPE_OPENCL_OBJECTS, CLElfLib::EH_MACHINE_NONE, 0);
|
||||
pElfWriter = CLElfLib::CElfWriter::create(CLElfLib::E_EH_TYPE::EH_TYPE_OPENCL_OBJECTS, CLElfLib::E_EH_MACHINE::EH_MACHINE_NONE, 0);
|
||||
|
||||
StackVec<const Program *, 16> inputProgramsInternal;
|
||||
for (cl_uint i = 0; i < numInputPrograms; i++) {
|
||||
@@ -102,11 +102,11 @@ cl_int Program::link(
|
||||
}
|
||||
sectionNode.Name = "";
|
||||
if (pInputProgObj->getIsSpirV()) {
|
||||
sectionNode.Type = CLElfLib::SH_TYPE_SPIRV;
|
||||
sectionNode.Type = CLElfLib::E_SH_TYPE::SH_TYPE_SPIRV;
|
||||
} else {
|
||||
sectionNode.Type = CLElfLib::SH_TYPE_OPENCL_LLVM_BINARY;
|
||||
sectionNode.Type = CLElfLib::E_SH_TYPE::SH_TYPE_OPENCL_LLVM_BINARY;
|
||||
}
|
||||
sectionNode.Flags = 0;
|
||||
sectionNode.Flags = CLElfLib::E_SH_FLAG::SH_FLAG_NONE;
|
||||
sectionNode.pData = pInputProgObj->irBinary;
|
||||
sectionNode.DataSize = static_cast<unsigned int>(pInputProgObj->irBinarySize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user