1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package ppc64 6 7 import ( 8 "cmd/compile/internal/gc" 9 "cmd/internal/obj" 10 "cmd/internal/obj/ppc64" 11 ) 12 13 func Init() { 14 gc.Thearch.LinkArch = &ppc64.Linkppc64 15 if obj.GOARCH == "ppc64le" { 16 gc.Thearch.LinkArch = &ppc64.Linkppc64le 17 } 18 gc.Thearch.REGSP = ppc64.REGSP 19 gc.Thearch.MAXWIDTH = 1 << 50 20 21 gc.Thearch.Defframe = defframe 22 gc.Thearch.Proginfo = proginfo 23 24 gc.Thearch.SSAMarkMoves = ssaMarkMoves 25 gc.Thearch.SSAGenValue = ssaGenValue 26 gc.Thearch.SSAGenBlock = ssaGenBlock 27 28 initvariants() 29 initproginfo() 30 } 31