Commit d751c82
authored
[SPIRV] Allow spirv type as template parameter (microsoft#7626)
SPIR-V intrinsics allow us to create spirv basic type and opaque type in
HLSL, but these type are object and not allowed in template parameter.
```fundamental
error: object 'Int8Type' is not allowed in builtin template parameters
/* OpTypeCooperativeMatrixKHR */ 4456, Int8Type,
^
```
This doesn't make sense to me, and is not convenience to use. This
change wants to allow that use those in template parameter.1 parent 4fcf67f commit d751c82
File tree
2 files changed
+38
-0
lines changed- tools/clang
- lib/Sema
- test/CodeGenSPIRV
2 files changed
+38
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5402 | 5402 | | |
5403 | 5403 | | |
5404 | 5404 | | |
| 5405 | + | |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + | |
| 5410 | + | |
| 5411 | + | |
| 5412 | + | |
| 5413 | + | |
5405 | 5414 | | |
5406 | 5415 | | |
5407 | 5416 | | |
| |||
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments