github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/ssagen/pgen.go (about) 1 // Copyright 2011 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 ssagen 6 7 import ( 8 "github.com/shogo82148/std/cmd/compile/internal/ir" 9 "github.com/shogo82148/std/cmd/compile/internal/ssa" 10 "github.com/shogo82148/std/cmd/internal/obj" 11 ) 12 13 // Compile builds an SSA backend function, 14 // uses it to generate a plist, 15 // and flushes that plist to machine code. 16 // worker indicates which of the backend workers is doing the processing. 17 func Compile(fn *ir.Func, worker int) 18 19 // RegisterMapInitLsym records "s" in the set of outlined map initializer 20 // functions. 21 func RegisterMapInitLsym(s *obj.LSym) 22 23 // StackOffset returns the stack location of a LocalSlot relative to the 24 // stack pointer, suitable for use in a DWARF location entry. This has nothing 25 // to do with its offset in the user variable. 26 func StackOffset(slot ssa.LocalSlot) int32 27 28 func CheckLargeStacks()