]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: implement ODOT
authorKeith Randall <khr@golang.org>
Thu, 16 Jul 2015 04:33:49 +0000 (21:33 -0700)
committerKeith Randall <khr@golang.org>
Thu, 16 Jul 2015 05:43:36 +0000 (05:43 +0000)
commitcd7e0594963fdd77c9baba60677c68c6e218dad6
treef24cbc73bb4d98b7f5fea2b1844c9164874ef60a
parent078ba138d370d1752e78c558e795ea9d01d6d1db
[dev.ssa] cmd/compile/internal/ssa: implement ODOT

Implement ODOT.  Similar to ArrayIndex, StructSelect selects a field
out of a larger Value.

We may need more ways to rewrite StructSelect, but StructSelect/Load
is the typical way it is used.

Change-Id: Ida7b8aab3298f4754eaf9fee733974cf8736e45d
Reviewed-on: https://go-review.googlesource.com/12265
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewritegeneric.go