@@ -643,7 +643,7 @@ struct ModuleSpecConstantsFixture : public DeviceFixture {
643
643
}
644
644
645
645
void runTest () {
646
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
646
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
647
647
zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections);
648
648
const auto &src = zebinData->storage ;
649
649
@@ -682,7 +682,7 @@ struct ModuleSpecConstantsFixture : public DeviceFixture {
682
682
}
683
683
684
684
void runTestStatic () {
685
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
685
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
686
686
zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections);
687
687
const auto &src = zebinData->storage ;
688
688
@@ -775,7 +775,7 @@ TEST_F(ModuleSpecConstantsLongTests, givenSpecializationConstantsSetWhenCompiler
775
775
mockCompiler = new FailingMockCompilerInterfaceWithSpecConstants (moduleNumSpecConstants);
776
776
auto rootDeviceEnvironment = neoDevice->getExecutionEnvironment ()->rootDeviceEnvironments [0 ].get ();
777
777
rootDeviceEnvironment->compilerInterface .reset (mockCompiler);
778
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
778
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
779
779
auto zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections);
780
780
const auto &src = zebinData->storage ;
781
781
@@ -806,7 +806,7 @@ TEST_F(ModuleSpecConstantsLongTests, givenSpecializationConstantsSetWhenCompiler
806
806
}
807
807
808
808
TEST_F (ModuleSpecConstantsLongTests, givenSpecializationConstantsSetWhenUserPassTooMuchConstsIdsThenModuleInitFails) {
809
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
809
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
810
810
auto zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections);
811
811
const auto &src = zebinData->storage ;
812
812
@@ -862,7 +862,7 @@ TEST_F(ModuleSpecConstantsLongTests, givenSpecializationConstantsSetWhenCompiler
862
862
mockCompiler = new FailingMockCompilerInterfaceWithSpecConstants (moduleNumSpecConstants);
863
863
auto rootDeviceEnvironment = neoDevice->getExecutionEnvironment ()->rootDeviceEnvironments [0 ].get ();
864
864
rootDeviceEnvironment->compilerInterface .reset (mockCompiler);
865
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
865
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
866
866
auto zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections);
867
867
const auto &src = zebinData->storage ;
868
868
@@ -925,7 +925,7 @@ struct ModuleStaticLinkFixture : public DeviceFixture {
925
925
}
926
926
927
927
void loadModules (bool multiple) {
928
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
928
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
929
929
zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections);
930
930
const auto &storage = zebinData->storage ;
931
931
@@ -2846,7 +2846,7 @@ HWTEST_F(ModuleTranslationUnitTest, GivenRebuildFlagWhenCreatingModuleFromNative
2846
2846
DebugManagerStateRestore dgbRestorer;
2847
2847
NEO::debugManager.flags .RebuildPrecompiledKernels .set (true );
2848
2848
2849
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
2849
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
2850
2850
bool forceRecompilation = true ;
2851
2851
auto zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections, forceRecompilation);
2852
2852
const auto &src = zebinData->storage ;
@@ -2881,7 +2881,7 @@ HWTEST_F(ModuleTranslationUnitTest, GivenRebuildFlagWhenCreatingModuleFromNative
2881
2881
DebugManagerStateRestore dgbRestorer;
2882
2882
NEO::debugManager.flags .RebuildPrecompiledKernels .set (true );
2883
2883
2884
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::spirv};
2884
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::spirv};
2885
2885
bool forceRecompilation = true ;
2886
2886
auto zebinData = std::make_unique<ZebinTestData::ZebinWithL0TestCommonModule>(device->getHwInfo (), additionalSections, forceRecompilation);
2887
2887
const auto &src = zebinData->storage ;
@@ -3003,8 +3003,8 @@ HWTEST2_F(ModuleTranslationUnitTest, givenLargeGrfAndSimd16WhenProcessingBinaryT
3003
3003
3004
3004
uint8_t kernelIsa[8 ]{0U };
3005
3005
ZebinTestData::ValidEmptyProgram zebin;
3006
- zebin.removeSection (NEO::Zebin::Elf::SHT_ZEBIN ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo);
3007
- zebin.appendSection (NEO::Zebin::Elf::SHT_ZEBIN ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo, ArrayRef<const uint8_t >::fromAny (validZeInfo.data (), validZeInfo.size ()));
3006
+ zebin.removeSection (NEO::Zebin::Elf::SectionHeaderTypeZebin ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo);
3007
+ zebin.appendSection (NEO::Zebin::Elf::SectionHeaderTypeZebin ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo, ArrayRef<const uint8_t >::fromAny (validZeInfo.data (), validZeInfo.size ()));
3008
3008
zebin.appendSection (NEO::Elf::SHT_PROGBITS, NEO::Zebin::Elf::SectionNames::textPrefix.str () + " kernel_with_default_maxWGS" , {kernelIsa, sizeof (kernelIsa)});
3009
3009
zebin.appendSection (NEO::Elf::SHT_PROGBITS, NEO::Zebin::Elf::SectionNames::textPrefix.str () + " kernel_with_reduced_maxWGS" , {kernelIsa, sizeof (kernelIsa)});
3010
3010
zebin.elfHeader ->machine = this ->device ->getNEODevice ()->getHardwareInfo ().platform .eProductFamily ;
@@ -3050,8 +3050,8 @@ HWTEST2_F(ModuleTranslationUnitTest, givenLargeGrfAndSimd16WhenProcessingBinaryT
3050
3050
3051
3051
uint8_t kernelIsa[8 ]{0U };
3052
3052
ZebinTestData::ValidEmptyProgram zebin;
3053
- zebin.removeSection (NEO::Zebin::Elf::SHT_ZEBIN ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo);
3054
- zebin.appendSection (NEO::Zebin::Elf::SHT_ZEBIN ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo, ArrayRef<const uint8_t >::fromAny (validZeInfo.data (), validZeInfo.size ()));
3053
+ zebin.removeSection (NEO::Zebin::Elf::SectionHeaderTypeZebin ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo);
3054
+ zebin.appendSection (NEO::Zebin::Elf::SectionHeaderTypeZebin ::SHT_ZEBIN_ZEINFO, NEO::Zebin::Elf::SectionNames::zeInfo, ArrayRef<const uint8_t >::fromAny (validZeInfo.data (), validZeInfo.size ()));
3055
3055
zebin.appendSection (NEO::Elf::SHT_PROGBITS, NEO::Zebin::Elf::SectionNames::textPrefix.str () + " kernel_with_default_maxWGS" , {kernelIsa, sizeof (kernelIsa)});
3056
3056
zebin.appendSection (NEO::Elf::SHT_PROGBITS, NEO::Zebin::Elf::SectionNames::textPrefix.str () + " kernel_with_reduced_maxWGS" , {kernelIsa, sizeof (kernelIsa)});
3057
3057
zebin.elfHeader ->machine = this ->device ->getNEODevice ()->getHardwareInfo ().platform .eProductFamily ;
@@ -3109,15 +3109,15 @@ TEST_F(ModuleTranslationUnitTest, WhenCreatingFromZeBinaryAndGlobalsAreExportedT
3109
3109
elfEncoder.appendSection (NEO::Elf::SHT_PROGBITS, NEO::Zebin::Elf::SectionNames::dataGlobal, std::string{" 12345678" });
3110
3110
auto dataGlobalSectionIndex = elfEncoder.getLastSectionHeaderIndex ();
3111
3111
3112
- NEO::Elf::ElfSymbolEntry<NEO::Elf::ELF_IDENTIFIER_CLASS ::EI_CLASS_64> symbolTable[2 ] = {};
3112
+ NEO::Elf::ElfSymbolEntry<NEO::Elf::ElfIdentifierClass ::EI_CLASS_64> symbolTable[2 ] = {};
3113
3113
symbolTable[0 ].name = decltype (symbolTable[0 ].name )(elfEncoder.appendSectionName (" const.data" ));
3114
- symbolTable[0 ].info = NEO::Elf::SYMBOL_TABLE_TYPE ::STT_OBJECT | NEO::Elf::SYMBOL_TABLE_BIND ::STB_GLOBAL << 4 ;
3114
+ symbolTable[0 ].info = NEO::Elf::SymbolTableType ::STT_OBJECT | NEO::Elf::SymbolTableBind ::STB_GLOBAL << 4 ;
3115
3115
symbolTable[0 ].shndx = decltype (symbolTable[0 ].shndx )(dataConstSectionIndex);
3116
3116
symbolTable[0 ].size = 4 ;
3117
3117
symbolTable[0 ].value = 0 ;
3118
3118
3119
3119
symbolTable[1 ].name = decltype (symbolTable[1 ].name )(elfEncoder.appendSectionName (" global.data" ));
3120
- symbolTable[1 ].info = NEO::Elf::SYMBOL_TABLE_TYPE ::STT_OBJECT | NEO::Elf::SYMBOL_TABLE_BIND ::STB_GLOBAL << 4 ;
3120
+ symbolTable[1 ].info = NEO::Elf::SymbolTableType ::STT_OBJECT | NEO::Elf::SymbolTableBind ::STB_GLOBAL << 4 ;
3121
3121
symbolTable[1 ].shndx = decltype (symbolTable[1 ].shndx )(dataGlobalSectionIndex);
3122
3122
symbolTable[1 ].size = 4 ;
3123
3123
symbolTable[1 ].value = 0 ;
@@ -4525,7 +4525,7 @@ TEST_F(ModuleIsaCopyTest, whenModuleIsInitializedThenIsaIsCopied) {
4525
4525
4526
4526
uint32_t previouscopyMemoryToAllocationCalledTimes = mockMemoryManager->copyMemoryToAllocationCalledTimes ;
4527
4527
4528
- auto additionalSections = {ZebinTestData::appendElfAdditionalSection ::global};
4528
+ auto additionalSections = {ZebinTestData::AppendElfAdditionalSection ::global};
4529
4529
createModuleFromMockBinary (perHwThreadPrivateMemorySizeRequested, isInternal, mockKernelImmData.get (), additionalSections);
4530
4530
4531
4531
uint32_t numOfKernels = static_cast <uint32_t >(module->getKernelImmutableDataVector ().size ());
0 commit comments