github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/compile/internal/arm/galign.go (about)

     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 arm
     6  
     7  import (
     8  	"github.com/gagliardetto/golang-go/cmd/compile/internal/gc"
     9  	"github.com/gagliardetto/golang-go/cmd/compile/internal/ssa"
    10  	"github.com/gagliardetto/golang-go/cmd/internal/obj/arm"
    11  	"github.com/gagliardetto/golang-go/cmd/internal/objabi"
    12  )
    13  
    14  func Init(arch *gc.Arch) {
    15  	arch.LinkArch = &arm.Linkarm
    16  	arch.REGSP = arm.REGSP
    17  	arch.MAXWIDTH = (1 << 32) - 1
    18  	arch.SoftFloat = objabi.GOARM == 5
    19  	arch.ZeroRange = zerorange
    20  	arch.Ginsnop = ginsnop
    21  	arch.Ginsnopdefer = ginsnop
    22  
    23  	arch.SSAMarkMoves = func(s *gc.SSAGenState, b *ssa.Block) {}
    24  	arch.SSAGenValue = ssaGenValue
    25  	arch.SSAGenBlock = ssaGenBlock
    26  }