Home | History | Annotate | Download | only in mips
      1 // Copyright 2016 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 mips
      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.Linkmips
     16 	if obj.GOARCH == "mipsle" {
     17 		gc.Thearch.LinkArch = &mips.Linkmipsle
     18 	}
     19 	gc.Thearch.REGSP = mips.REGSP
     20 	gc.Thearch.MAXWIDTH = (1 << 31) - 1
     21 	gc.Thearch.Defframe = defframe
     22 	gc.Thearch.Proginfo = proginfo
     23 	gc.Thearch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {}
     24 	gc.Thearch.SSAGenValue = ssaGenValue
     25 	gc.Thearch.SSAGenBlock = ssaGenBlock
     26 }
     27