1
2
3
4
5 package amd64
6
7 import (
8 "cmd/compile/internal/ssagen"
9 "cmd/internal/obj/x86"
10 )
11
12 var leaptr = x86.ALEAQ
13
14 func Init(arch *ssagen.ArchInfo) {
15 arch.LinkArch = &x86.Linkamd64
16 arch.REGSP = x86.REGSP
17 arch.MAXWIDTH = 1 << 50
18
19 arch.ZeroRange = zerorange
20 arch.Ginsnop = ginsnop
21
22 arch.SSAMarkMoves = ssaMarkMoves
23 arch.SSAGenValue = ssaGenValue
24 arch.SSAGenBlock = ssaGenBlock
25 arch.LoadRegResult = loadRegResult
26 arch.SpillArgReg = spillArgReg
27 }
28
View as plain text