]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: extract rtype code from walk
authorMatthew Dempsky <mdempsky@google.com>
Tue, 14 Jun 2022 23:07:46 +0000 (16:07 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 21 Jun 2022 23:50:58 +0000 (23:50 +0000)
commit93833cd5d8c8b35cd94f743c73cd18712531de4b
tree499ffef709fe7697df79760e1536a4ae19bd4e36
parentf70775ff22f4658d6ee65d9ec314687cffe57a84
[dev.unified] cmd/compile: extract rtype code from walk

This CL removes (almost*) all reflectdata.{TypePtr,ITabAddr} calls
from package walk. This will allow us to next start adding RType/ITab
fields to IR nodes directly, and have the helpers start returning them
when available instead.

The one survining ITabAddr call is due to ODOTTYPE{,2}, but we already
have ODYNAMICDOTTYPE{,2}, which I plan to have Unified IR always
use. (Longer term, once the Go 1.18 frontend is gone, we can get rid
of ODOTTYPE*, and rename ODYNAMICDOTTYPE*.)

Passes toolstash -cmp.

Change-Id: I5e00da06a93d069abf383d7628e692dd7fd2a1c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/413356
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/reflectdata/helpers.go [new file with mode: 0644]
src/cmd/compile/internal/walk/assign.go
src/cmd/compile/internal/walk/builtin.go
src/cmd/compile/internal/walk/compare.go
src/cmd/compile/internal/walk/complit.go
src/cmd/compile/internal/walk/convert.go
src/cmd/compile/internal/walk/expr.go
src/cmd/compile/internal/walk/order.go
src/cmd/compile/internal/walk/range.go