blob: 39748c2804f5642bdb03f9fe8744a329847e846a [file] [edit]
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ssabase
// A Register is a machine register, like AX.
// They are numbered densely from 0 (for each architecture).
type Register struct {
Num int32 // dense numbering
ObjNum int16 // register number from cmd/internal/obj/$ARCH
Name string
}
func (r *Register) String() string {
return r.Name
}