github.com/go-asm/go@v1.21.1-0.20240213172139-40c5ead50c48/cmd/compile/riscv64/galign.go (about)

     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 riscv64
     6  
     7  import (
     8  	"github.com/go-asm/go/cmd/compile/ssagen"
     9  	"github.com/go-asm/go/cmd/obj/riscv"
    10  )
    11  
    12  func Init(arch *ssagen.ArchInfo) {
    13  	arch.LinkArch = &riscv.LinkRISCV64
    14  
    15  	arch.REGSP = riscv.REG_SP
    16  	arch.MAXWIDTH = 1 << 50
    17  
    18  	arch.Ginsnop = ginsnop
    19  	arch.ZeroRange = zeroRange
    20  
    21  	arch.SSAMarkMoves = ssaMarkMoves
    22  	arch.SSAGenValue = ssaGenValue
    23  	arch.SSAGenBlock = ssaGenBlock
    24  	arch.LoadRegResult = loadRegResult
    25  	arch.SpillArgReg = spillArgReg
    26  }