Skip to content

Commit e3d9e98

Browse files
sys-igcigcbot
authored andcommitted
Changes in code.
1 parent 0b1ecda commit e3d9e98

File tree

3 files changed

+7
-23
lines changed

3 files changed

+7
-23
lines changed

IGC/AdaptorOCL/OCL/sp/zebin_builder.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,6 @@ void ZEBinaryBuilder::addSymbols(
392392
getSymbolElfBinding(sym), getSymbolElfType(sym),
393393
(sym.s_type == vISA::GenSymType::S_UNDEF) ? -1 : mGlobalConstSectID);
394394

395-
// add symbols defined in global string constant section
396-
for (auto sym : symbols.globalStringConst)
397-
mBuilder.addSymbol(sym.s_name, sym.s_offset, sym.s_size,
398-
getSymbolElfBinding(sym), getSymbolElfType(sym),
399-
(sym.s_type == vISA::GenSymType::S_UNDEF) ? -1 : mConstStringSectID);
400-
401395
// add symbols defined in global section
402396
for (auto sym : symbols.global)
403397
mBuilder.addSymbol(sym.s_name, sym.s_offset, sym.s_size,

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4873,17 +4873,8 @@ namespace IGC
48734873
symbols.global.emplace_back((vISA::GenSymType)sEntry.s_type,
48744874
sEntry.s_offset, sEntry.s_size, name.str());
48754875
else
4876-
{
4877-
// Global constants and string literals
4878-
Constant * initializer = pGlobal->getInitializer();
4879-
ConstantDataSequential * cds = dyn_cast<ConstantDataSequential>(initializer);
4880-
if (cds && (cds->isCString() || cds->isString()))
4881-
symbols.globalStringConst.emplace_back((vISA::GenSymType)sEntry.s_type,
4882-
sEntry.s_offset, sEntry.s_size, name.str());
4883-
else
4884-
symbols.globalConst.emplace_back((vISA::GenSymType)sEntry.s_type,
4885-
sEntry.s_offset, sEntry.s_size, name.str());
4886-
}
4876+
symbols.globalConst.emplace_back((vISA::GenSymType)sEntry.s_type,
4877+
sEntry.s_offset, sEntry.s_size, name.str());
48874878
}
48884879
symbolTable.push_back(sEntry);
48894880
}

IGC/Compiler/CodeGenPublic.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,11 @@ namespace IGC
9595
typedef std::vector<vISA::ZERelocEntry> RelocListTy;
9696
typedef std::vector<vISA::ZEFuncAttribEntry> FuncAttrListTy;
9797
struct SymbolLists {
98-
SymbolListTy function; // function symbols
99-
SymbolListTy global; // global symbols
100-
SymbolListTy globalConst; // global constant symbols
101-
SymbolListTy globalStringConst; // global string constant symbols
102-
SymbolListTy sampler; // sampler symbols
103-
SymbolListTy local; // local symbols
98+
SymbolListTy function; // function symbols
99+
SymbolListTy global; // global symbols
100+
SymbolListTy globalConst; // global constant symbols
101+
SymbolListTy sampler; // sampler symbols
102+
SymbolListTy local; // local symbols
104103
};
105104

106105
public:

0 commit comments

Comments
 (0)