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