Commit 8cc9a48
authored
[clang] Improve diagnostics for vector builtins (#125673)
This commit improves the diagnostics for vector (elementwise) builtins
in a couple of ways.
It primarily provides more precise type-checking diagnostics for
builtins with specific type requirements. Previously many builtins were
receiving a catch-all diagnostic suggesting types which aren't valid.
It also makes consistent the type-checking behaviour between various
binary and ternary builtins. The binary builtins would check for
mismatched argument types before specific type requirements, whereas
ternary builtins would perform the checks in the reverse order. The
binary builtins now behave as the ternary ones do.1 parent e6c3d94 commit 8cc9a48
File tree
24 files changed
+396
-386
lines changed- clang
- include/clang
- Basic
- Sema
- lib/Sema
- test
- SemaHLSL/BuiltIns
- Sema
24 files changed
+396
-386
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12523 | 12523 | | |
12524 | 12524 | | |
12525 | 12525 | | |
12526 | | - | |
12527 | | - | |
12528 | | - | |
12529 | | - | |
12530 | | - | |
12531 | | - | |
12532 | | - | |
12533 | | - | |
12534 | | - | |
12535 | | - | |
| 12526 | + | |
| 12527 | + | |
| 12528 | + | |
| 12529 | + | |
| 12530 | + | |
| 12531 | + | |
| 12532 | + | |
| 12533 | + | |
| 12534 | + | |
| 12535 | + | |
| 12536 | + | |
| 12537 | + | |
| 12538 | + | |
| 12539 | + | |
| 12540 | + | |
| 12541 | + | |
| 12542 | + | |
| 12543 | + | |
| 12544 | + | |
| 12545 | + | |
| 12546 | + | |
| 12547 | + | |
| 12548 | + | |
| 12549 | + | |
| 12550 | + | |
12536 | 12551 | | |
12537 | 12552 | | |
12538 | 12553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2353 | 2353 | | |
2354 | 2354 | | |
2355 | 2355 | | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2356 | 2363 | | |
2357 | | - | |
2358 | | - | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
2359 | 2368 | | |
2360 | 2369 | | |
2361 | 2370 | | |
| |||
2459 | 2468 | | |
2460 | 2469 | | |
2461 | 2470 | | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2465 | 2478 | | |
2466 | 2479 | | |
2467 | 2480 | | |
| |||
2570 | 2583 | | |
2571 | 2584 | | |
2572 | 2585 | | |
2573 | | - | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
2574 | 2589 | | |
2575 | 2590 | | |
2576 | 2591 | | |
| |||
0 commit comments