]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: add register ABI analysis utilities
authorThan McIntosh <thanm@google.com>
Tue, 24 Nov 2020 23:10:11 +0000 (18:10 -0500)
committerThan McIntosh <thanm@google.com>
Mon, 14 Dec 2020 17:34:36 +0000 (17:34 +0000)
commit89f38323faa57d3f7475016f778be69fcffbe9fb
tree5ddbce6f17d901518826f9a182e268dd0fd69e8b
parent8ce37e4110316030159972e17c67152e8f8e9359
[dev.regabi] cmd/compile: add register ABI analysis utilities

Introduce a new utility routine for analyzing a given function
signature to how its various input and output parameters will be
passed (in registers or on the stack) for a given ABI description,
along with some unit tests.

Change-Id: Id64a98a0a142e42dd9c2dc9f6607c0d827ef84fb
Reviewed-on: https://go-review.googlesource.com/c/go/+/273011
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Trust: Than McIntosh <thanm@google.com>
src/cmd/compile/fmtmap_test.go
src/cmd/compile/internal/gc/abiutils.go [new file with mode: 0644]
src/cmd/compile/internal/gc/abiutils_test.go [new file with mode: 0644]
src/cmd/compile/internal/gc/abiutilsaux_test.go [new file with mode: 0644]