Skip to content

Commit 63faca0

Browse files
authored
[SM6.10][NFC] DXIL Ops Allow 4 type overloads (#8084)
The LinAlg spec requires certain new DXIL opcodes to have 4 type overloads. This NFC change updates the infrastructure to support that
1 parent ec5f680 commit 63faca0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

include/dxc/DXIL/DxilConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const unsigned kVecResRetStatusIndex = 1;
158158

159159
/* <py::lines('OLOAD_DIMS-TEXT')>hctdb_instrhelp.get_max_oload_dims()</py>*/
160160
// OLOAD_DIMS-TEXT:BEGIN
161-
const unsigned kDxilMaxOloadDims = 2;
161+
const unsigned kDxilMaxOloadDims = 4;
162162
// OLOAD_DIMS-TEXT:END
163163

164164
enum class ComponentType : uint32_t {

utils/hct/hctdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
# Maximum number of overload dimensions supported through the extended overload
6161
# in DXIL instructions.
62-
dxil_max_overload_dims = 2
62+
dxil_max_overload_dims = 4
6363

6464

6565
class db_dxil_enum_value(object):

utils/hct/hctdb_instrhelp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ def print_opfunc_table(self):
644644
# Extended overload slots, extend as needed:
645645
"$x0": "EXT(0);",
646646
"$x1": "EXT(1);",
647+
"$x2": "EXT(2);",
648+
"$x3": "EXT(3);",
647649
}
648650
last_category = None
649651
for i in self.db.get_dxil_ops():

0 commit comments

Comments
 (0)