github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/ssa/decompose.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 // MaxStruct is the maximum number of fields a struct 8 // can have and still be SSAable. 9 const MaxStruct = 4 10 11 // StructMakeOp returns the opcode to construct a struct with the 12 // given number of fields. 13 func StructMakeOp(nf int) Op