summaryrefslogtreecommitdiff
path: root/compiler/utils/label.h
diff options
context:
space:
mode:
author Lifang Xia <lifang_xia@linux.alibaba.com> 2023-03-15 13:36:40 +0800
committer VladimĂ­r Marko <vmarko@google.com> 2023-06-02 14:13:39 +0000
commite7dd044ecf428701c3cf5c07ca6540ec38d2c3c2 (patch)
tree12e14f84327248c3c86f161232435c36c4143742 /compiler/utils/label.h
parentf6886c25e059591dd617dd22556b2da20696878f (diff)
Add assembler for riscv64, part 3.
Implement branches, literals and jump tables. Fix some FP instructions. Test: m test-art-host-gtest Bug: 283082089 Signed-off-by: Lifang Xia <lifang_xia@linux.alibaba.com> Signed-off-by: Wendong Wang <wangwd@xcvmbyte.com> Signed-off-by: Cao Xia <caoxia@eswincomputing.com> Change-Id: Ib21d01b7cc0988e0a82a079fc039db3d5fcbfa14
Diffstat (limited to 'compiler/utils/label.h')
-rw-r--r--compiler/utils/label.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/utils/label.h b/compiler/utils/label.h
index 0368d90a26..25bf01376b 100644
--- a/compiler/utils/label.h
+++ b/compiler/utils/label.h
@@ -31,6 +31,10 @@ class AssemblerFixup;
namespace arm64 {
class Arm64Assembler;
} // namespace arm64
+namespace riscv64 {
+class Riscv64Assembler;
+class Riscv64Label;
+} // namespace riscv64
namespace x86 {
class X86Assembler;
class NearLabel;
@@ -109,6 +113,8 @@ class Label {
}
friend class arm64::Arm64Assembler;
+ friend class riscv64::Riscv64Assembler;
+ friend class riscv64::Riscv64Label;
friend class x86::X86Assembler;
friend class x86::NearLabel;
friend class x86_64::X86_64Assembler;