github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/reflectdata/alg.go (about) 1 // Copyright 2016 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 reflectdata 6 7 import ( 8 "github.com/shogo82148/std/cmd/compile/internal/ir" 9 "github.com/shogo82148/std/cmd/compile/internal/types" 10 ) 11 12 // AlgType returns the fixed-width AMEMxx variants instead of the general 13 // AMEM kind when possible. 14 func AlgType(t *types.Type) types.AlgKind 15 16 // EqFor returns ONAME node represents type t's equal function, and a boolean 17 // to indicates whether a length needs to be passed when calling the function. 18 func EqFor(t *types.Type) (ir.Node, bool)