mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.regabi] cmd/compile: add ssa.Aux tag interface for Value.Aux
It's currently hard to automate refactorings around the Value.Aux field, because we don't have any static typing information for it. Adding a tag interface will make subsequent CLs easier and safer. Passes buildall w/ toolstash -cmp. Updates #42982. Change-Id: I41ae8e411a66bda3195a0957b60c2fe8a8002893 Reviewed-on: https://go-review.googlesource.com/c/go/+/275756 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Trust: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
63722da46b
commit
1a98ab0e2d
20 changed files with 80 additions and 57 deletions
|
|
@ -143,13 +143,13 @@ func (loc VarLoc) absent() bool {
|
|||
var BlockStart = &Value{
|
||||
ID: -10000,
|
||||
Op: OpInvalid,
|
||||
Aux: "BlockStart",
|
||||
Aux: StringToAux("BlockStart"),
|
||||
}
|
||||
|
||||
var BlockEnd = &Value{
|
||||
ID: -20000,
|
||||
Op: OpInvalid,
|
||||
Aux: "BlockEnd",
|
||||
Aux: StringToAux("BlockEnd"),
|
||||
}
|
||||
|
||||
// RegisterSet is a bitmap of registers, indexed by Register.num.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue