Commit 7033657
committed
[NFC][Matrix][Clang][HLSL] Move MaxMatrixDimension to a LangOpt
fixes #160190
This change just makes MaxMatrixDimension configurable by language mode.
It was previously introduced in 94b4311
when there was not a need to make dimensions configurable.
Current testing to this effect exists in:
- clang/test/Sema/matrix-type-builtins.c
- clang/test/SemaCXX/matrix-type-builtins.cpp
- clang/test/SemaHLSL/BuiltIns/matrix-basic_types-errors.hlsl
I considered adding a driver flag to `clang/include/clang/Driver/Options.td`
but HLSL matrix max dim is always 4 so we don't need this configurable
beyond that size for our use case.1 parent b5d75b2 commit 7033657
File tree
7 files changed
+15
-21
lines changed- clang
- include/clang
- AST
- Basic
- lib
- AST
- Basic
- Sema
7 files changed
+15
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4378 | 4378 | | |
4379 | 4379 | | |
4380 | 4380 | | |
4381 | | - | |
4382 | | - | |
4383 | 4381 | | |
4384 | 4382 | | |
4385 | 4383 | | |
| |||
4398 | 4396 | | |
4399 | 4397 | | |
4400 | 4398 | | |
4401 | | - | |
4402 | | - | |
4403 | | - | |
4404 | | - | |
4405 | | - | |
4406 | | - | |
4407 | | - | |
4408 | | - | |
4409 | | - | |
4410 | | - | |
4411 | 4399 | | |
4412 | 4400 | | |
4413 | 4401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
| 435 | + | |
435 | 436 | | |
436 | 437 | | |
437 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4713 | 4713 | | |
4714 | 4714 | | |
4715 | 4715 | | |
4716 | | - | |
4717 | | - | |
| 4716 | + | |
| 4717 | + | |
4718 | 4718 | | |
4719 | 4719 | | |
4720 | 4720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16240 | 16240 | | |
16241 | 16241 | | |
16242 | 16242 | | |
16243 | | - | |
| 16243 | + | |
16244 | 16244 | | |
16245 | | - | |
| 16245 | + | |
16246 | 16246 | | |
16247 | 16247 | | |
16248 | 16248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2517 | 2517 | | |
2518 | 2518 | | |
2519 | 2519 | | |
2520 | | - | |
| 2520 | + | |
2521 | 2521 | | |
2522 | 2522 | | |
2523 | 2523 | | |
2524 | 2524 | | |
2525 | | - | |
| 2525 | + | |
2526 | 2526 | | |
2527 | 2527 | | |
2528 | 2528 | | |
| |||
0 commit comments