aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2022-12-20 11:23:23 -0800
committerGopher Robot <gobot@golang.org>2023-01-27 03:37:13 +0000
commit7cf8593140f41358f77041ab0fc6ca7e99f6e715 (patch)
tree753ffd849ef8fe4a0e6e0bf7f87b32c700524cb0 /src/cmd/compile/internal/noder
parent4e3abee245755d741987132fb22c442af2dab1de (diff)
downloadgo-7cf8593140f41358f77041ab0fc6ca7e99f6e715.tar.xz
cmd/compile: apply FixVariadicCall and FixMethodCall during typecheck
To simplify backend analysis, we normalize variadic and method calls: variadic calls are rewritten with an explicit slice argument, and method calls are turned into function calls that pass the receiver argument as the first parameter. But because we've been supporting multiple frontends, this normalization was scattered in various later passes. Now that we're back to just one frontend, we can move the normalization forward into typecheck (where most other IR normalization already happens). Change-Id: Idd05ae231fc180ae3dd1664452414f6b6d578962 Reviewed-on: https://go-review.googlesource.com/c/go/+/463737 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder')
0 files changed, 0 insertions, 0 deletions