Source file src/cmd/compile/internal/loong64/galign.go

     1  // Copyright 2022 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 loong64
     6  
     7  import (
     8  	"cmd/compile/internal/ssa"
     9  	"cmd/compile/internal/ssagen"
    10  	"cmd/internal/obj/loong64"
    11  )
    12  
    13  func Init(arch *ssagen.ArchInfo) {
    14  	arch.LinkArch = &loong64.Linkloong64
    15  	arch.REGSP = loong64.REGSP
    16  	arch.MAXWIDTH = 1 << 50
    17  	arch.ZeroRange = zerorange
    18  	arch.Ginsnop = ginsnop
    19  
    20  	arch.SSAMarkMoves = func(s *ssagen.State, b *ssa.Block) {}
    21  	arch.SSAGenValue = ssaGenValue
    22  	arch.SSAGenBlock = ssaGenBlock
    23  	arch.LoadRegResult = loadRegResult
    24  	arch.SpillArgReg = spillArgReg
    25  }
    26  

View as plain text