aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/opt.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2015-06-06 16:03:33 -0700
committerKeith Randall <khr@golang.org>2015-06-08 21:02:03 +0000
commit0dca7351e9d51bdaf980e1256ec41af8cb1b9747 (patch)
tree82553209d0f920fa55e54bc6a066c96c749ea3df /src/cmd/compile/internal/ssa/opt.go
parent6241a41e33fb1dcfb36f86b0578592219a36d443 (diff)
downloadgo-0dca7351e9d51bdaf980e1256ec41af8cb1b9747.tar.gz
go-0dca7351e9d51bdaf980e1256ec41af8cb1b9747.zip
[dev.ssa] cmd/compile/internal/ssa: autogenerate opcodes
Revamp autogeneration. Get rid of gogenerate commands, they are more trouble than they are worth. (If the code won't compile, gogenerate doesn't work.) Generate opcode enums & tables. This means we only have to specify opcodes in one place instead of two. Add arch prefixes to opcodes so they will be globally unique. Change-Id: I175d0a89b701b2377bbe699f3756731b7c9f5a9f Reviewed-on: https://go-review.googlesource.com/10812 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opt.go')
-rw-r--r--src/cmd/compile/internal/ssa/opt.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd/compile/internal/ssa/opt.go b/src/cmd/compile/internal/ssa/opt.go
index 81c1dfcc02..6e91fd7da3 100644
--- a/src/cmd/compile/internal/ssa/opt.go
+++ b/src/cmd/compile/internal/ssa/opt.go
@@ -5,9 +5,6 @@
package ssa
// machine-independent optimization
-
-//go:generate go run rulegen/rulegen.go rulegen/generic.rules genericBlockRules genericValueRules generic.go
-
func opt(f *Func) {
- applyRewrite(f, genericBlockRules, genericValueRules)
+ applyRewrite(f, rewriteBlockgeneric, rewriteValuegeneric)
}