Skip to content

Commit f918686

Browse files
aparshin-inteligcbot
authored andcommitted
EnableElf2ZEBinary->ZeBinCompatible debug emitter option renaming
1 parent c0ee98d commit f918686

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

IGC/AdaptorOCL/OCL/sp/spp_g8.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ void CGen8OpenCLProgram::GetZEBinary(
456456
if (isValidShader(simd8Shader))
457457
kernelVec.push_back(simd8Shader);
458458

459-
if (IGC_IS_FLAG_ENABLED(EnableElf2ZEBinary))
459+
if (IGC_IS_FLAG_ENABLED(ZeBinCompatibleDebugging))
460460
{
461461
IGC_ASSERT_MESSAGE(false, "Missing ELF linking support for multiple SIMD modes");
462462
}
@@ -496,7 +496,7 @@ void CGen8OpenCLProgram::GetZEBinary(
496496

497497
// ... Create the debug data binary streams
498498

499-
if (IGC_IS_FLAG_ENABLED(EnableElf2ZEBinary))
499+
if (IGC_IS_FLAG_ENABLED(ZeBinCompatibleDebugging))
500500
{
501501
const unsigned int rsrvdForAllButFullName = 64; // characters will be used for temporary ELF file names.
502502
unsigned int spaceAvailableForKernelName = maxElfFileNameLength - rsrvdForAllButFullName - tempDir.size();
@@ -573,7 +573,7 @@ void CGen8OpenCLProgram::GetZEBinary(
573573
}
574574
}
575575

576-
if (IGC_IS_FLAG_ENABLED(EnableElf2ZEBinary))
576+
if (IGC_IS_FLAG_ENABLED(ZeBinCompatibleDebugging))
577577
{
578578
if (!elfTmpFilesError)
579579
{

IGC/Compiler/CISACodeGen/EmitVISAPass.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,9 @@ bool EmitPass::runOnFunction(llvm::Function& F)
819819
DebugOpts.EmitDebugRanges = IGC_IS_FLAG_ENABLED(EmitDebugRanges);
820820
DebugOpts.EmitDebugLoc = IGC_IS_FLAG_ENABLED(EmitDebugLoc);
821821
DebugOpts.EmitOffsetInDbgLoc = IGC_IS_FLAG_ENABLED(EmitOffsetInDbgLoc);
822-
DebugOpts.EnableRelocation = IGC_IS_FLAG_ENABLED(EnableRelocations) || IGC_IS_FLAG_ENABLED(EnableElf2ZEBinary);
823-
DebugOpts.EnableElf2ZEBinary = IGC_IS_FLAG_ENABLED(EnableElf2ZEBinary);
824-
DebugOpts.EnforceAMD64Machine = IGC_IS_FLAG_ENABLED(DebugInfoEnforceAmd64EM) || IGC_IS_FLAG_ENABLED(EnableElf2ZEBinary);
822+
DebugOpts.EnableRelocation = IGC_IS_FLAG_ENABLED(EnableRelocations) || IGC_IS_FLAG_ENABLED(ZeBinCompatibleDebugging);
823+
DebugOpts.ZeBinCompatible = IGC_IS_FLAG_ENABLED(ZeBinCompatibleDebugging);
824+
DebugOpts.EnforceAMD64Machine = IGC_IS_FLAG_ENABLED(DebugInfoEnforceAmd64EM) || IGC_IS_FLAG_ENABLED(ZeBinCompatibleDebugging);
825825
DebugOpts.EmitPrologueEnd = IGC_IS_FLAG_ENABLED(EmitPrologueEnd);
826826
IF_DEBUG_INFO(m_pDebugEmitter = IDebugEmitter::Create();)
827827
IF_DEBUG_INFO(m_pDebugEmitter->Initialize(std::move(vMod), DebugOpts);)

IGC/DebugInfo/EmitterOpts.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace IGC
2222
bool EmitDebugLoc = false;
2323
bool EmitOffsetInDbgLoc = false;
2424
bool EnableRelocation = false;
25-
bool EnableElf2ZEBinary = false;
25+
bool ZeBinCompatible = false;
2626
bool EnforceAMD64Machine = false;
2727
bool EmitPrologueEnd = true;
2828
bool ScratchOffsetInOW = true;

IGC/DebugInfo/VISADebugEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,14 @@ std::vector<char> DebugEmitter::Finalize(bool finalize, DbgDecoder* decodedDbg,
337337
phtSize = sizeof(llvm::ELF::Elf64_Phdr);
338338

339339
unsigned int kernelNameSizeWithDot = 0;
340-
if (m_pStreamEmitter->GetEmitterSettings().EnableElf2ZEBinary)
340+
if (m_pStreamEmitter->GetEmitterSettings().ZeBinCompatible)
341341
{
342342
kernelNameSizeWithDot = sizeof('.') + pFunc->getName().size();
343343
}
344344
size_t elfWithProgramHeaderSize = m_str.size() + phtSize + kernelNameSizeWithDot;
345345
std::vector<char> Result(elfWithProgramHeaderSize);
346346

347-
if (!m_pStreamEmitter->GetEmitterSettings().EnableElf2ZEBinary)
347+
if (!m_pStreamEmitter->GetEmitterSettings().ZeBinCompatible)
348348
{
349349
// Text section remains with its standard name .text
350350
std::copy(m_str.begin(), m_str.end(), Result.begin());

IGC/common/igc_flags.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ DECLARE_IGC_REGKEY(bool, EnableGTLocationDebugging, false, "Setting this to
272272
DECLARE_IGC_REGKEY(bool, UseOffsetInLocation, true, "Setting this to 1 (true) preserves private base and per thread offset and removes preservation of any other debug variables", true)
273273
DECLARE_IGC_REGKEY(bool, EnableRelocations, false, "Setting this to 1 (true) makes IGC emit relocatable ELF with debug info", true)
274274
DECLARE_IGC_REGKEY(bool, EnableWriteOldFPToStack, true, "Setting this to 1 (true) writes the caller frame's frame-pointer to the start of callee's frame on stack, to support stack walk", false)
275-
DECLARE_IGC_REGKEY(bool, EnableElf2ZEBinary, false, "Setting this to 1 (true) enables embed debug info in zeBinary", true)
275+
DECLARE_IGC_REGKEY(bool, ZeBinCompatibleDebugging, false, "Setting this to 1 (true) enables embed debug info in zeBinary", true)
276276
DECLARE_IGC_REGKEY(bool, DebugInfoEnforceAmd64EM, false, "Enforces elf file with the debug infomation to have eMachine set to AMD64", false)
277277
DECLARE_IGC_REGKEY(debugString, ExtraOCLOptions, 0, "Extra options for OpenCL", true)
278278
DECLARE_IGC_REGKEY(debugString, ExtraOCLInternalOptions, 0, "Extra internal options for OpenCL", true)

documentation/configuration_flags.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ $ export IGC_ShaderDumpEnable=1
6666
- **UseOffsetInLocation** - Using offset in location limits variables available for a debugger all time
6767
- **ElfDumpEnable** - Dump ELF
6868
- **ElfTempDumpEnable** - Dump temporary ELF files
69-
- **EnableElf2ZEBinary** - Enables embed debug info in zeBinary
69+
- **ZeBinCompatibleDebugging** - Enables embed debug info in zeBinary
7070
- **EnableLivenessDump** - Enable dumping out liveness info on stderr
7171
- **EnableLTODebug** - Enable debug information for LTO
7272
- **EnableMaxWGSizeCalculation** - Enable max work group size calculation [OCL only]

0 commit comments

Comments
 (0)