github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/ssa/schedule.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  const (
     8  	ScorePhi       = iota
     9  	ScoreArg
    10  	ScoreInitMem
    11  	ScoreReadTuple
    12  	ScoreNilCheck
    13  	ScoreMemory
    14  	ScoreReadFlags
    15  	ScoreDefault
    16  	ScoreFlags
    17  	ScoreControl
    18  )
    19  
    20  type ValHeap struct {
    21  	a           []*Value
    22  	score       []int8
    23  	inBlockUses []bool
    24  }
    25  
    26  func (h ValHeap) Len() int
    27  func (h ValHeap) Swap(i, j int)
    28  
    29  func (h *ValHeap) Push(x interface{})
    30  
    31  func (h *ValHeap) Pop() interface{}
    32  
    33  func (h ValHeap) Less(i, j int) bool