Skip to content

Commit a3fc26f

Browse files
authored
[NFC] Remove dead code related to Intel's JointMatrix extension (#1747)
Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent b95227e commit a3fc26f

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

lib/SPIRV/SPIRVInternal.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -260,22 +260,6 @@ SPIRVMap<SPIRVExtInstSetKind, std::string, SPIRVExtSetShortName>::init() {
260260
typedef SPIRVMap<SPIRVExtInstSetKind, std::string, SPIRVExtSetShortName>
261261
SPIRVExtSetShortNameMap;
262262

263-
template <>
264-
inline void SPIRVMap<internal::InternalJointMatrixLayout, std::string>::init() {
265-
add(internal::RowMajor, "matrix.rowmajor");
266-
add(internal::ColumnMajor, "matrix.columnmajor");
267-
add(internal::PackedA, "matrix.packed.a");
268-
add(internal::PackedB, "matrix.packed.b");
269-
}
270-
typedef SPIRVMap<internal::InternalJointMatrixLayout, std::string>
271-
SPIRVMatrixLayoutMap;
272-
273-
template <> inline void SPIRVMap<spv::Scope, std::string>::init() {
274-
add(ScopeWorkgroup, "scope.workgroup");
275-
add(ScopeSubgroup, "scope.subgroup");
276-
}
277-
typedef SPIRVMap<spv::Scope, std::string> SPIRVMatrixScopeMap;
278-
279263
#define SPIR_MD_COMPILER_OPTIONS "opencl.compiler.options"
280264
#define SPIR_MD_KERNEL_ARG_ADDR_SPACE "kernel_arg_addr_space"
281265
#define SPIR_MD_KERNEL_ARG_ACCESS_QUAL "kernel_arg_access_qual"

lib/SPIRV/SPIRVUtil.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,8 +2403,5 @@ MetadataAsValue *map2MDString(LLVMContext &C, SPIRVValue *V) {
24032403
std::string Str = SPIRVMap<T, std::string>::map(static_cast<T>(Const));
24042404
return MetadataAsValue::get(C, MDString::get(C, Str));
24052405
}
2406-
template MetadataAsValue *
2407-
map2MDString<internal::InternalJointMatrixLayout>(LLVMContext &, SPIRVValue *);
2408-
template MetadataAsValue *map2MDString<spv::Scope>(LLVMContext &, SPIRVValue *);
24092406

24102407
} // namespace SPIRV

0 commit comments

Comments
 (0)