]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: add RType fields
authorMatthew Dempsky <mdempsky@google.com>
Tue, 21 Jun 2022 06:21:16 +0000 (23:21 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 23 Jun 2022 21:52:30 +0000 (21:52 +0000)
commit5960f4ec10e175714145d5ffa1b37d282b7a2157
tree2e6f61ef9759bac8d0c1c7b2d06ebab6a868990d
parent5e0258c700cba33db1a41806ff328a9c3f42d4da
[dev.unified] cmd/compile: add RType fields

This CL adds RType/ITab fields to IR nodes that (may) ultimately
become runtime calls that require a *runtime._type or *runtime.itab
argument. It also updates the corresponding reflectdata IR helpers to
use these fields in preference of calling TypePtr/ITabAddr.

Subsequent CLs will start updating the GOEXPERIMENT=unified frontend
to set the RType fields, and incrementally switch the reflectdata
helpers to require them.

Passes toolstash -cmp.

Change-Id: I30e31d91f0a53961e3d6d872d7b5f9df2ec5074c
Reviewed-on: https://go-review.googlesource.com/c/go/+/413358
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/stmt.go
src/cmd/compile/internal/reflectdata/helpers.go
src/cmd/compile/internal/walk/convert.go