]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: define ARM64 parameter registers
authorCherry Mui <cherryyz@google.com>
Tue, 25 May 2021 15:53:04 +0000 (11:53 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 26 May 2021 23:28:56 +0000 (23:28 +0000)
commit4bb927f82e7d4661d287ec5e975ba6cbdee2ae90
tree03c6d40a9821a2bfc0ce7c27dbae7a562bf1a4df
parentcf23daeda3792eb2ba07c30823d5a0c8667f5083
[dev.typeparams] cmd/compile: define ARM64 parameter registers

Define the registers.

They are not really enabled for now. Otherwise the compiler will
start using them for go:registerparams functions and it is not
fully working. Some test will fail.

Now we can compile a simple Add function with registerparams
(with registers enabled).

Change-Id: Ifdfac931052c0196096a1dd8b0687b5fdedb14d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/322850
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/arm64/ssa.go
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/gen/ARM64Ops.go
src/cmd/compile/internal/ssa/opGen.go