Commit 063ec2d
authored
Add AArch64 SVE2 Vector Length Agnostic builders (#317)
These generate code that uses the SVE2 extension, as opposed to our
existing builders that only use SVE. Therefore they will run on our
Graviton 4 workers only, which are Neoverse v2 cores with SVE and SVE2.
The optimisation guide:
https://github.com/aws/aws-graviton-getting-started/blob/main/c-c++.md
Suggests -mcpu=neoverse-v2 for best performance, but here I'm using it
just so we get the SVE2 feature enabled. If we used the balanced
-mcpu=neoverse-512tvb, we wouldn't get SVE2 without fiddly extra flags.
```
$ ~/clang+llvm-18.1.8-aarch64-linux-gnu/bin/clang /tmp/test.c -o /dev/null -mcpu=neoverse-v2 -###
<...> "-target-feature" "+sve" "-target-feature" "+sve2-bitperm" "-target-feature" "+sve2" <...>
```
I have not added vector length settings as these builders will generate
scalable ("length agnostic" - LA) code.
Otherwise, the builders have identical setups to the existing SVE VLA
builders.1 parent 6ee9b98 commit 063ec2d
1 file changed
+53
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
467 | 470 | | |
468 | 471 | | |
469 | 472 | | |
| |||
566 | 569 | | |
567 | 570 | | |
568 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
569 | 622 | | |
570 | 623 | | |
571 | 624 | | |
| |||
0 commit comments