]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: add custom expression Node implementations
authorRuss Cox <rsc@golang.org>
Mon, 30 Nov 2020 02:25:47 +0000 (21:25 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 1 Dec 2020 02:16:26 +0000 (02:16 +0000)
commit9a5a11adfa0f5ead728641d8fb72244e03239547
treed36274fbfa38be9db9c9f26f5e99ef9289953af2
parent0f9f27287b6eaac1634248e325aaab848e0dfd55
[dev.regabi] cmd/compile: add custom expression Node implementations

These are fairly rote implementations of structs appropriate to
each Op (or group of Ops).

The names of these are unknown except to ir.NodAt for now.
A later, automated change will introduce direct use of the types
throughout package gc.

(This CL is expressions; the previous one was statements.)

This is the last of the Ops that were previously handled by the
generic node struct, so that struct and its methods can be
and are deleted in this CL.

Passes buildall w/ toolstash -cmp.

Change-Id: I1703f35f24dcd3f7c5782a278e53c3fe04e87c37
Reviewed-on: https://go-review.googlesource.com/c/go/+/274109
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>
src/cmd/compile/fmtmap_test.go
src/cmd/compile/internal/ir/dump.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/fmt.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/sizeof_test.go