diff options
author | Keith Randall <khr@golang.org> | 2015-09-08 21:28:44 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2015-09-09 20:33:35 +0000 |
commit | 8a1f6217c57316808e8f23f5f2fa251de3c18a26 (patch) | |
tree | 785c052d3a17c8b389b0c877aceb836330117064 /src/cmd/compile/internal/ssa/block.go | |
parent | fd8c71be865386b5545571c9ff3b5c604809e133 (diff) | |
download | go-8a1f6217c57316808e8f23f5f2fa251de3c18a26.tar.gz go-8a1f6217c57316808e8f23f5f2fa251de3c18a26.zip |
[dev.ssa] cmd/compile/internal/ssa: implement ORETJMP
Change-Id: I352c7b9aab053959bc74c15861339e1dbe545ddc
Reviewed-on: https://go-review.googlesource.com/14404
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/block.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/block.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/block.go b/src/cmd/compile/internal/ssa/block.go index 1d5e617c55..5fb93cd5a7 100644 --- a/src/cmd/compile/internal/ssa/block.go +++ b/src/cmd/compile/internal/ssa/block.go @@ -30,6 +30,9 @@ type Block struct { // has a memory control value. Control *Value + // Auxiliary info for the block. Its value depends on the Kind. + Aux interface{} + // The unordered set of Values that define the operation of this block. // The list must include the control value, if any. (TODO: need this last condition?) // After the scheduling pass, this list is ordered. @@ -65,6 +68,9 @@ func (b *Block) String() string { // long form print func (b *Block) LongString() string { s := b.Kind.String() + if b.Aux != nil { + s += fmt.Sprintf(" %s", b.Aux) + } if b.Control != nil { s += fmt.Sprintf(" %s", b.Control) } |