Source file src/cmd/compile/internal/arm/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 arm
     6  
     7  import (
     8  	"cmd/compile/internal/ssa"
     9  	"cmd/compile/internal/ssagen"
    10  	"cmd/internal/obj/arm"
    11  	"internal/buildcfg"
    12  )
    13  
    14  func Init(arch *ssagen.ArchInfo) {
    15  	arch.LinkArch = &arm.Linkarm
    16  	arch.REGSP = arm.REGSP
    17  	arch.MAXWIDTH = (1 << 32) - 1
    18  	arch.SoftFloat = buildcfg.GOARM == 5
    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  }
    26  

View as plain text