]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: expose ir.Func to ssa
authorMichael Pratt <mpratt@google.com>
Tue, 11 Apr 2023 20:40:12 +0000 (16:40 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 20 Apr 2023 21:51:46 +0000 (21:51 +0000)
commit598cf5e6ac1deb87f4931af195dad66f2b3f1672
tree0177a6db0372c311d93eca479126f4f296d30758
parent608f204ac79455bee144d6fa93162991bdb46b61
cmd/compile: expose ir.Func to ssa

ssagen.ssafn already holds the ir.Func, and ssa.Frontend.SetWBPos and
ssa.Frontend.Lsym are simple wrappers around parts of the ir.Func.

Expose the ir.Func through ssa.Frontend, allowing us to remove these
wrapper methods and allowing future access to additional features of the
ir.Func if needed.

While we're here, drop ssa.Frontend.Line, which is unused.

For #58298.

Change-Id: I30c4cbd2743e9ad991d8c6b388484a7d1e95f3ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/484215
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/export_test.go
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/writebarrier.go
src/cmd/compile/internal/ssagen/ssa.go