2016-10-18 23:50:44 +02:00
|
|
|
// Copyright 2016 The Go Authors. All rights reserved.
|
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
package mips
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"cmd/compile/internal/gc"
|
|
|
|
|
"cmd/compile/internal/ssa"
|
|
|
|
|
"cmd/internal/obj/mips"
|
2017-04-18 12:53:25 -07:00
|
|
|
"cmd/internal/objabi"
|
2016-10-18 23:50:44 +02:00
|
|
|
)
|
|
|
|
|
|
2017-03-17 13:35:31 -07:00
|
|
|
func Init(arch *gc.Arch) {
|
|
|
|
|
arch.LinkArch = &mips.Linkmips
|
2017-04-18 12:53:25 -07:00
|
|
|
if objabi.GOARCH == "mipsle" {
|
2017-03-17 13:35:31 -07:00
|
|
|
arch.LinkArch = &mips.Linkmipsle
|
2016-10-18 23:50:44 +02:00
|
|
|
}
|
2017-03-17 13:35:31 -07:00
|
|
|
arch.REGSP = mips.REGSP
|
|
|
|
|
arch.MAXWIDTH = (1 << 31) - 1
|
|
|
|
|
arch.Defframe = defframe
|
|
|
|
|
arch.Ginsnop = ginsnop
|
|
|
|
|
arch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {}
|
|
|
|
|
arch.SSAGenValue = ssaGenValue
|
|
|
|
|
arch.SSAGenBlock = ssaGenBlock
|
2016-10-18 23:50:44 +02:00
|
|
|
}
|