]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: add import/export of calls to builtin functions
authorDan Scales <danscales@google.com>
Mon, 10 May 2021 17:17:51 +0000 (10:17 -0700)
committerDan Scales <danscales@google.com>
Fri, 21 May 2021 17:14:19 +0000 (17:14 +0000)
commitb1a398cf0f04ac911be204d3c0ee001a94621683
tree46dc3881562f151d261423b87b60f19ef51c816f
parentccbfbb1c3327fffe88dd6b6da550f4a0cd37db6e
[dev.typeparams] cmd/compile:  add import/export of calls to builtin functions

For generic functions, we have to leave the builtins in OCALL form,
rather than transform to specific ops, since we don't know the exact
types involved. Allow export/import of builtins in OCALL form.

Added new export/import test mapimp.go.

Change-Id: I571f8eeaa13b4f69389dbdb9afb6cc61924b9bf2
Reviewed-on: https://go-review.googlesource.com/c/go/+/321750
Trust: Dan Scales <danscales@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/typecheck/iexport.go
src/cmd/compile/internal/typecheck/iimport.go
test/typeparam/mapimp.dir/a.go [new file with mode: 0644]
test/typeparam/mapimp.dir/main.go [new file with mode: 0644]
test/typeparam/mapimp.go [new file with mode: 0644]