mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: layout stack frame during SSA
Identify live stack variables during SSA and compute the stack frame layout earlier so that we can emit instructions with the correct offsets upfront. Passes toolstash/buildall. Change-Id: I191100dba274f1e364a15bdcfdc1d1466cdd1db5 Reviewed-on: https://go-review.googlesource.com/30216 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
f239196b9e
commit
8c24bff52b
17 changed files with 160 additions and 319 deletions
10
src/cmd/compile/internal/ssa/stackframe.go
Normal file
10
src/cmd/compile/internal/ssa/stackframe.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Copyright 2016 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package ssa
|
||||
|
||||
// stackframe calls back into the frontend to assign frame offsets.
|
||||
func stackframe(f *Func) {
|
||||
f.Config.fe.AllocFrame(f)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue