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

     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 ppc64
     6  
     7  import (
     8  	"cmd/compile/internal/ssagen"
     9  	"cmd/internal/obj/ppc64"
    10  	"internal/buildcfg"
    11  )
    12  
    13  func Init(arch *ssagen.ArchInfo) {
    14  	arch.LinkArch = &ppc64.Linkppc64
    15  	if buildcfg.GOARCH == "ppc64le" {
    16  		arch.LinkArch = &ppc64.Linkppc64le
    17  	}
    18  	arch.REGSP = ppc64.REGSP
    19  	arch.MAXWIDTH = 1 << 50
    20  
    21  	arch.ZeroRange = zerorange
    22  	arch.Ginsnop = ginsnop
    23  
    24  	arch.SSAMarkMoves = ssaMarkMoves
    25  	arch.SSAGenValue = ssaGenValue
    26  	arch.SSAGenBlock = ssaGenBlock
    27  	arch.LoadRegResult = loadRegResult
    28  	arch.SpillArgReg = spillArgReg
    29  }
    30  

View as plain text