diff options
author | Russ Cox <rsc@golang.org> | 2020-12-21 01:44:49 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-12-21 19:23:31 +0000 |
commit | e999c1702250222b069691491d24dd5d020744de (patch) | |
tree | 007bcf3be4dea6086b428707c5e0092a00a55c4b /src/cmd/compile/internal/gc/main.go | |
parent | 4836e28ac0482183a3a6af88ee4295ffdbc94f62 (diff) | |
download | go-e999c1702250222b069691491d24dd5d020744de.tar.gz go-e999c1702250222b069691491d24dd5d020744de.zip |
[dev.regabi] cmd/compile: separate ssa from other phases
isIntrinsicCall and ssaDumpInline are the only two "forward references"
to ssa by earlier phases. Make them a bit more explicit so that the
uses and the definitions can end up in different packages.
Change-Id: I02c7a27464fbedef9fee43c0e4094fa08b4d7a5c
Reviewed-on: https://go-review.googlesource.com/c/go/+/279300
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/main.go')
-rw-r--r-- | src/cmd/compile/internal/gc/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go index 45880c5cde..afb47cf15d 100644 --- a/src/cmd/compile/internal/gc/main.go +++ b/src/cmd/compile/internal/gc/main.go @@ -191,6 +191,9 @@ func Main(archInit func(*Arch)) { logopt.LogJsonOption(base.Flag.JSON) } + IsIntrinsicCall = isIntrinsicCall + SSADumpInline = ssaDumpInline + ssaDump = os.Getenv("GOSSAFUNC") ssaDir = os.Getenv("GOSSADIR") if ssaDump != "" { |