]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: introduce ir.INode interface for *ir.Node
authorRuss Cox <rsc@golang.org>
Wed, 25 Nov 2020 05:37:36 +0000 (00:37 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 25 Nov 2020 17:30:42 +0000 (17:30 +0000)
commit4d0d9c2c5c35377b0662f2fd0995867919552251
treee6fbb6de2f9827e5eed0ad70250ae061d5171864
parentc26aead50c3c8226c51fb97a94852f2134b881aa
[dev.regabi] cmd/compile: introduce ir.INode interface for *ir.Node

Define the interface for an IR node.
The next CL will shuffle the names and leave us with ir.Node being the interface.

Change-Id: Ifc40f7846d522cf99efa6b4e558bebb6db5218f9
Reviewed-on: https://go-review.googlesource.com/c/go/+/272934
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/internal/ir/fmt.go
src/cmd/compile/internal/ir/node.go