]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile/internal/ssa: Fix bootstrap of ssa codegen
authorKeith Randall <khr@golang.org>
Tue, 16 Jun 2015 20:33:32 +0000 (13:33 -0700)
committerKeith Randall <khr@golang.org>
Tue, 16 Jun 2015 21:28:21 +0000 (21:28 +0000)
commit50ceef26e6517a5785433cd73b9eda30159d03bb
treebe6b66fee2de9dcf4e2d3a2320b61611e8daeee8
parent703ef06039c031d99b7420d984fded0bef11b14d
[dev.ssa] cmd/compile/internal/ssa: Fix bootstrap of ssa codegen

The cmd/compile/internal/ssa/gen directory can't depend on cmd/internal/gc
because that package doesn't exist in go1.4.  Use strings instead of
constants from that package.

The asm fields seem somewhat redundant to the opcode names we
conventionally use.  Maybe we can just trim the lowercase from the end
of the op name?  At least by default?

Change-Id: I96e8cda44833763951709e2721588fbd34580989
Reviewed-on: https://go-review.googlesource.com/11129
Reviewed-by: Michael Matloob <michaelmatloob@gmail.com>
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/main.go
src/cmd/compile/internal/ssa/opGen.go