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 mips64 6 7 import ( 8 "cmd/compile/internal/gc" 9 "cmd/compile/internal/ssa" 10 "cmd/internal/obj" 11 "cmd/internal/obj/mips" 12 ) 13 14 func Init() { 15 gc.Thearch.LinkArch = &mips.Linkmips64 16 if obj.GOARCH == "mips64le" { 17 gc.Thearch.LinkArch = &mips.Linkmips64le 18 } 19 gc.Thearch.REGSP = mips.REGSP 20 gc.Thearch.MAXWIDTH = 1 << 50 21 22 gc.Thearch.Defframe = defframe 23 gc.Thearch.Proginfo = proginfo 24 25 gc.Thearch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {} 26 gc.Thearch.SSAGenValue = ssaGenValue 27 gc.Thearch.SSAGenBlock = ssaGenBlock 28 } 29