Skip to content

Commit 14014e0

Browse files
committed
Remove deprecated linear algebra layout checks and associated functions
1 parent 37af478 commit 14014e0

2 files changed

Lines changed: 0 additions & 47 deletions

File tree

include/dxc/DXIL/DxilConstants.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,13 +2470,6 @@ extern const char *kHostLayoutTypePrefix;
24702470

24712471
extern const char *kWaveOpsIncludeHelperLanesString;
24722472

2473-
enum class LinalgMatrixLayout : uint32_t {
2474-
RowMajor = 0,
2475-
ColumnMajor = 1,
2476-
MulOptimal = 2,
2477-
OuterProductOptimal = 3,
2478-
};
2479-
24802473
} // namespace DXIL
24812474

24822475
} // namespace hlsl

lib/DxilValidation/DxilValidation.cpp

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -996,46 +996,6 @@ static bool CheckLinalgInterpretation(uint32_t Input, bool InRegister) {
996996
}
997997
}
998998

999-
static bool CheckMatrixLayoutForMatVecMulOps(unsigned Layout) {
1000-
return Layout <=
1001-
static_cast<unsigned>(DXIL::LinalgMatrixLayout::OuterProductOptimal);
1002-
}
1003-
1004-
std::string GetMatrixLayoutStr(unsigned Layout) {
1005-
switch (static_cast<DXIL::LinalgMatrixLayout>(Layout)) {
1006-
case DXIL::LinalgMatrixLayout::RowMajor:
1007-
return "RowMajor";
1008-
case DXIL::LinalgMatrixLayout::ColumnMajor:
1009-
return "ColumnMajor";
1010-
case DXIL::LinalgMatrixLayout::MulOptimal:
1011-
return "MulOptimal";
1012-
case DXIL::LinalgMatrixLayout::OuterProductOptimal:
1013-
return "OuterProductOptimal";
1014-
default:
1015-
DXASSERT_NOMSG(false);
1016-
return "Invalid";
1017-
}
1018-
}
1019-
1020-
static bool CheckTransposeForMatrixLayout(unsigned Layout, bool Transposed) {
1021-
switch (static_cast<DXIL::LinalgMatrixLayout>(Layout)) {
1022-
case DXIL::LinalgMatrixLayout::RowMajor:
1023-
case DXIL::LinalgMatrixLayout::ColumnMajor:
1024-
return !Transposed;
1025-
1026-
default:
1027-
return true;
1028-
}
1029-
}
1030-
1031-
static bool CheckUnsignedFlag(Type *VecTy, bool IsUnsigned) {
1032-
Type *ElemTy = VecTy->getScalarType();
1033-
if (ElemTy->isFloatingPointTy())
1034-
return !IsUnsigned;
1035-
1036-
return true;
1037-
}
1038-
1039999
// Validate the type-defined mask compared to the store value mask which
10401000
// Validate the type-defined mask compared to the store value mask which
10411001
// indicates which parts were defined returns true if caller should continue

0 commit comments

Comments
 (0)