diff options
author | Brandon Wu <brandon.wu@sifive.com> | 2024-03-27 23:03:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 23:03:13 +0800 |
commit | 91896607ffb84561a7a2e466a00fdf1938c5bb63 (patch) | |
tree | cfea81458e2249e96e367b4c1ddbf9015de30165 /clang/lib/Sema/SemaChecking.cpp | |
parent | 6d3ec56d3ce1478ac42a400a80532b8f732477fe (diff) | |
download | llvm-91896607ffb84561a7a2e466a00fdf1938c5bb63.zip llvm-91896607ffb84561a7a2e466a00fdf1938c5bb63.tar.gz llvm-91896607ffb84561a7a2e466a00fdf1938c5bb63.tar.bz2 |
[RISCV] RISCV vector calling convention (1/2) (#77560)
[RISCV] RISCV vector calling convention (1/2)
This is the vector calling convention based on
https://github.com/riscv-non-isa/riscv-elf-psabi-doc,
the idea is to split between "scalar" callee-saved registers
and "vector" callee-saved registers. "scalar" ones remain the
original strategy, however, "vector" ones are handled together
with RVV objects.
The stack layout would be:
|--------------------------| <-- FP
| callee-allocated save |
| area for register varargs|
|--------------------------|
| callee-saved registers | <-- scalar callee-saved
| (scalar) |
|--------------------------|
| RVV alignment padding |
|--------------------------|
| callee-saved registers | <-- vector callee-saved
| (vector) |
|--------------------------|
| RVV objects |
|--------------------------|
| padding before RVV |
|--------------------------|
| scalar local variables |
|--------------------------| <-- BP
| variable size objects |
|--------------------------| <-- SP
Note: This patch doesn't contain "tuple" type, e.g. vint32m1x2.
It will be handled in https://github.com/riscv-non-isa/riscv-elf-psabi-doc (2/2).
Differential Revision: https://reviews.llvm.org/D154576
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions