mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
fdceb2a11b
commit
f493e55723
3 changed files with 19 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue