]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove amd64 code from package gc and the core gen tool
authorMichael Pratt <mpratt@google.com>
Sat, 12 Mar 2016 22:07:40 +0000 (14:07 -0800)
committerMichael Pratt <mpratt@google.com>
Mon, 14 Mar 2016 16:59:03 +0000 (16:59 +0000)
commita4e31d42ee294c95a1c76cb73d2141485a635886
treea0e51f686ad05ae8fe509a6b3df11ace86cf6b1e
parentb1a6e07919b965c36479fa7595107eb76393839f
cmd/compile: remove amd64 code from package gc and the core gen tool

Parts of the SSA compiler in package gc contain amd64-specific code,
most notably Prog generation. Move this code into package amd64, so that
other architectures can be added more easily.

In package gc, this change is just moving code. There are no functional
changes or even any larger structural changes beyond changing function
names (mostly for export).

In the cmd/compile/internal/ssa/gen tool, more information is included
in arch to remove the AMD64-specific behavior in the main portion of the
tool. The generated opGen.go is identical.

Change-Id: I8eb37c6e6df6de1b65fa7dab6f3bc32c29daf643
Reviewed-on: https://go-review.googlesource.com/20609
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/amd64/galign.go
src/cmd/compile/internal/amd64/ssa.go [new file with mode: 0644]
src/cmd/compile/internal/gc/gen.go
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/gen/decOps.go
src/cmd/compile/internal/ssa/gen/genericOps.go
src/cmd/compile/internal/ssa/gen/main.go