]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: plumb abi info into expandCalls
authorDavid Chase <drchase@google.com>
Mon, 1 Feb 2021 18:26:47 +0000 (13:26 -0500)
committerDavid Chase <drchase@google.com>
Wed, 24 Feb 2021 23:05:10 +0000 (23:05 +0000)
commitd0d21b7c4c92df8bf60059cbea4c20cfe4ae5fee
treef4bb4649d1d39a35620e93d51a2a5859649ae360
parent8027343b6395536aa8bef8158bad8f4c290dd650
cmd/compile: plumb abi info into expandCalls

Work in progress.

TODO:
- insert debugging output for all the steps listed below
- emit modified call instructions w/ multiple register inputs
  and Result-typed outputs (next CL)
  - initially just change output from "mem" to "Result{mem}"
  = most places this hits will be future work.
- change OpArg to use registerized variants
  - (done) match abi paramresultinfo with particular arg, use Name
  - (this CL) push register offsets for "loads" and "stores" into
    recursive decomposition.
- hand registerized Result to exit block

For #40724.

Change-Id: Ie5de9d71f8fd4e092f5ee9260b54de35abf91016
Reviewed-on: https://go-review.googlesource.com/c/go/+/293390
Trust: David Chase <drchase@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/abi/abiutils.go
src/cmd/compile/internal/ssa/expand_calls.go
src/cmd/compile/internal/ssa/op.go