native: document arm64 registers with comments (#11122)
parent
aceaaa681d
commit
2cfb8fd697
|
@ -3,23 +3,37 @@ module native
|
||||||
import v.ast
|
import v.ast
|
||||||
|
|
||||||
enum Arm64Register {
|
enum Arm64Register {
|
||||||
x0
|
x0 // v----
|
||||||
x1
|
x1 // |
|
||||||
x2
|
x2 // |
|
||||||
x3
|
x3 // | parameter and result registers
|
||||||
x4
|
x4 // |
|
||||||
x5
|
x5 // |
|
||||||
x6
|
x6 // |
|
||||||
x7
|
x7 // ^----
|
||||||
x8
|
x8 // XR - indirect result location register
|
||||||
x9
|
x9 // v----
|
||||||
x10
|
x10 // |
|
||||||
x11
|
x11 // |
|
||||||
x12
|
x12 // | caller saved registers
|
||||||
x13
|
x13 // |
|
||||||
x14
|
x14 // |
|
||||||
x15
|
x15 // ^----
|
||||||
x16
|
x16 // IP0 - inter procedure call scratch register
|
||||||
|
x17 // IP1 - inter procedure call scratch register
|
||||||
|
x18 // PR - platform register
|
||||||
|
x19 // v----
|
||||||
|
x20 // |
|
||||||
|
x21 // |
|
||||||
|
x22 // |
|
||||||
|
x23 // | callee saved registers
|
||||||
|
x24 // |
|
||||||
|
x25 // |
|
||||||
|
x26 // |
|
||||||
|
x27 // |
|
||||||
|
x28 // ^----
|
||||||
|
x29 // FP - frame pointer
|
||||||
|
x30 // LR - link register
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Arm64 {
|
pub struct Arm64 {
|
||||||
|
|
Loading…
Reference in New Issue