aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/regalloc.go
diff options
context:
space:
mode:
authorKeith Randall <khr@google.com>2018-09-24 12:26:58 -0700
committerKeith Randall <khr@golang.org>2018-09-24 19:55:51 +0000
commitf493e557232e223e313b4641d12e502c69bfe632 (patch)
tree5c11b8d0094a9b861151e09f41af45c2f18007d3 /src/cmd/compile/internal/ssa/regalloc.go
parentfdceb2a11bb767ddaa334cb39315ae6982b676aa (diff)
downloadgo-f493e557232e223e313b4641d12e502c69bfe632.tar.gz
go-f493e557232e223e313b4641d12e502c69bfe632.zip
cmd/compile: document regalloc fields
Document what the fields of regalloc mean. Hopefully will help people understand how the register allocator works. Change-Id: Ic322ed2019cc839b812740afe8cd2cf0b61da046 Reviewed-on: https://go-review.googlesource.com/137016 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/ssa/regalloc.go')
-rw-r--r--src/cmd/compile/internal/ssa/regalloc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/regalloc.go b/src/cmd/compile/internal/ssa/regalloc.go
index 278da6fe99..8946cf6b5c 100644
--- a/src/cmd/compile/internal/ssa/regalloc.go
+++ b/src/cmd/compile/internal/ssa/regalloc.go
@@ -150,6 +150,8 @@ type register uint8
const noRegister register = 255
+// A regMask encodes a set of machine registers.
+// TODO: regMask -> regSet?
type regMask uint64
func (m regMask) String() string {