Black Lives Matter. Support the Equal Justice Initiative.

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

Documentation: cmd/compile/internal/amd64

     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 amd64
     6  
     7  import (
     8  	"cmd/compile/internal/gc"
     9  	"cmd/internal/obj/x86"
    10  )
    11  
    12  var leaptr = x86.ALEAQ
    13  
    14  func Init(arch *gc.Arch) {
    15  	arch.LinkArch = &x86.Linkamd64
    16  	arch.REGSP = x86.REGSP
    17  	arch.MAXWIDTH = 1 << 50
    18  
    19  	arch.ZeroRange = zerorange
    20  	arch.Ginsnop = ginsnop
    21  	arch.Ginsnopdefer = ginsnop
    22  
    23  	arch.SSAMarkMoves = ssaMarkMoves
    24  	arch.SSAGenValue = ssaGenValue
    25  	arch.SSAGenBlock = ssaGenBlock
    26  }
    27  

View as plain text