Commit 92ee809
[Clang][AArch64] Emit 'unimplemented' diagnostic for SME (llvm#80295)
When a function F has ZA and ZT0 state, calls another function G that
only shares ZT0 state with its caller, F will have to save ZA before
the call to G, and restore it afterwards (rather than setting up a
lazy-sve).
This is not yet implemented in LLVM and does not result in a
compile-time error either. So instead of silently generating incorrect
code, it's better to emit an error saying this is not yet implemented.
(cherry picked from commit 319f4c0)1 parent bbbeddd commit 92ee809
File tree
3 files changed
+40
-29
lines changed- clang
- include/clang/Basic
- lib/Sema
- test/Sema
3 files changed
+40
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3711 | 3711 | | |
3712 | 3712 | | |
3713 | 3713 | | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
3714 | 3720 | | |
3715 | 3721 | | |
3716 | 3722 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7545 | 7545 | | |
7546 | 7546 | | |
7547 | 7547 | | |
7548 | | - | |
7549 | | - | |
7550 | | - | |
| 7548 | + | |
7551 | 7549 | | |
7552 | | - | |
| 7550 | + | |
| 7551 | + | |
| 7552 | + | |
| 7553 | + | |
7553 | 7554 | | |
| 7555 | + | |
7554 | 7556 | | |
7555 | 7557 | | |
7556 | 7558 | | |
7557 | 7559 | | |
7558 | | - | |
7559 | | - | |
7560 | | - | |
7561 | | - | |
7562 | | - | |
7563 | | - | |
7564 | | - | |
7565 | | - | |
7566 | | - | |
7567 | | - | |
7568 | | - | |
7569 | | - | |
7570 | | - | |
7571 | | - | |
7572 | | - | |
7573 | | - | |
7574 | | - | |
7575 | | - | |
7576 | | - | |
7577 | 7560 | | |
7578 | 7561 | | |
7579 | | - | |
7580 | | - | |
7581 | | - | |
| 7562 | + | |
| 7563 | + | |
| 7564 | + | |
| 7565 | + | |
| 7566 | + | |
| 7567 | + | |
7582 | 7568 | | |
7583 | 7569 | | |
7584 | 7570 | | |
| 7571 | + | |
7585 | 7572 | | |
7586 | 7573 | | |
7587 | | - | |
| 7574 | + | |
| 7575 | + | |
| 7576 | + | |
| 7577 | + | |
7588 | 7578 | | |
| 7579 | + | |
| 7580 | + | |
| 7581 | + | |
| 7582 | + | |
| 7583 | + | |
| 7584 | + | |
7589 | 7585 | | |
7590 | 7586 | | |
7591 | 7587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
0 commit comments