]> Cypherpunks repositories - gostls13.git/commit
go/internal/gcimporter: add support for unified IR
authorMatthew Dempsky <mdempsky@google.com>
Tue, 15 Feb 2022 03:51:37 +0000 (19:51 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 4 Apr 2022 18:32:58 +0000 (18:32 +0000)
commitdeaec2ecb3cca5b7a151feff2bf195c0fb76d3f5
tree3f084d867264303849a59ef1c95f3665a3b50284
parent7d1e07049fec1d9a9fd4116111e52b161746dbde
go/internal/gcimporter: add support for unified IR

This CL ports unified IR's types2 importer back to the go/types
API. Notably, it drops support for lazy importing, because those APIs
aren't exposed yet via go/types.

Also, it supports unified IR's "final" data format, which wholey
replaces the iexport data format rather than the current
backwards-compatible hack that cmd/compile uses. The next CL will
switch the compiler to using this same format.

Change-Id: I44e1744bbdc384c9c354119975e68befdc117cff
Reviewed-on: https://go-review.googlesource.com/c/go/+/386002
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/go/internal/gcimporter/exportdata.go
src/go/internal/gcimporter/gcimporter.go
src/go/internal/gcimporter/support.go
src/go/internal/gcimporter/ureader.go [new file with mode: 0644]