github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/ssa/rewrite.go (about)

     1  // Copyright 2015 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 ssa
     6  
     7  import (
     8  	"github.com/shogo82148/std/cmd/internal/src"
     9  )
    10  
    11  // DivisionNeedsFixUp reports whether the division needs fix-up code.
    12  func DivisionNeedsFixUp(v *Value) bool
    13  
    14  // Aux is an interface to hold miscellaneous data in Blocks and Values.
    15  type Aux interface {
    16  	CanBeAnSSAAux()
    17  }
    18  
    19  var AuxMark auxMark
    20  
    21  func StringToAux(s string) Aux
    22  
    23  func IsInlinableMemmove(dst, src *Value, sz int64, c *Config) bool
    24  
    25  func LogLargeCopy(funcName string, pos src.XPos, s int64)
    26  
    27  func GetPPC64Shiftsh(auxint int64) int64
    28  
    29  func GetPPC64Shiftmb(auxint int64) int64
    30  
    31  func GetPPC64Shiftme(auxint int64) int64
    32  
    33  // DecodePPC64RotateMask is the inverse operation of encodePPC64RotateMask.  The values returned as
    34  // mb and me satisfy the POWER ISA definition of MASK(x,y) where MASK(mb,me) = mask.
    35  func DecodePPC64RotateMask(sauxint int64) (rotate, mb, me int64, mask uint64)