github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/compile/arm64/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 arm64
     6  
     7  import (
     8  	"github.com/go-asm/go/cmd/compile/ssa"
     9  	"github.com/go-asm/go/cmd/compile/ssagen"
    10  	"github.com/go-asm/go/cmd/obj/arm64"
    11  )
    12  
    13  func Init(arch *ssagen.ArchInfo) {
    14  	arch.LinkArch = &arm64.Linkarm64
    15  	arch.REGSP = arm64.REGSP
    16  	arch.MAXWIDTH = 1 << 50
    17  
    18  	arch.PadFrame = padframe
    19  	arch.ZeroRange = zerorange
    20  	arch.Ginsnop = ginsnop
    21  
    22  	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    23  	arch.SSAGenValue = ssaGenValue
    24  	arch.SSAGenBlock = ssaGenBlock
    25  	arch.LoadRegResult = loadRegResult
    26  	arch.SpillArgReg = spillArgReg
    27  }