]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: introduce storeconst ops
authorKeith Randall <khr@golang.org>
Wed, 21 Oct 2015 20:13:56 +0000 (13:13 -0700)
committerKeith Randall <khr@golang.org>
Wed, 28 Oct 2015 03:09:55 +0000 (03:09 +0000)
commitd43f2e37edf4115e31a0c9218d87182d0aa1c4f0
tree57370c3361c7a9f8c4d7d2fbe0517ea703ae7c72
parentcd01c0be267da70abe8bd6f53109fa2c70e581dc
[dev.ssa] cmd/compile: introduce storeconst ops

Introduce opcodes that store a constant value.
AuxInt now needs to hold both the value to be stored and the
constant offset at which to store it.  Introduce a StoreConst
type to help encode/decode these parts to/from an AuxInt.

Change-Id: I1631883abe035cff4b16368683e1eb3d2ccb674d
Reviewed-on: https://go-review.googlesource.com/16170
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/op.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go