summaryrefslogtreecommitdiff
path: root/compiler/optimizing/loop_optimization.h
diff options
context:
space:
mode:
author Lifang Xia <lifang_xia@linux.alibaba.com> 2023-01-24 16:56:25 +0000
committer Ulya Trofimovich <skvadrik@google.com> 2023-02-06 12:31:54 +0000
commit394551feacebf565ccf10cb8b10eca8ad5d71494 (patch)
tree6f2ce76bc1fc10cd2f5d8587ba7c3ac1828e7fb9 /compiler/optimizing/loop_optimization.h
parent04339d6174a913881964ca8c5aa40a04782a42eb (diff)
riscv64: define general-purpose and floating-point registers.
Registers on RISC-V have two naming schemes: ordinary names X0 - X31, F0 - F31 and semantic names that reflect the use of each register per RISC-V calling convention. In ART, we choose to use semantic names, e.g. RA for return address register X1, S0 - S11 for callee-saved registers X8 - X9 and X18 - X27, etc. The use of semantic names simplifes the code and falls in line with other tools like compilers and debuggers. This CL also defines ART thread register TR (not to be confused with plaform thread register TP, which is used by libc and points to the TLS area of the current thread). TR is defined as X9/S1, which is the first callee-saved register that does not have a special purpose (X8 is the frame pointer FP). Test: lunch aosp_riscv64-userdebug && m dist Co-authored-by: Ulya Trafimovich <skvadrik@google.com> Change-Id: Iaccaa67b04d91f96d6c46c80fc7eaac65987141a
Diffstat (limited to 'compiler/optimizing/loop_optimization.h')
0 files changed, 0 insertions, 0 deletions