rename some register types

This commit is contained in:
Michael McLoughlin
2018-12-02 21:35:33 -08:00
parent 96a5c5fe1e
commit 59548ee9f6
3 changed files with 9 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ func IsYmm(op Op) bool {
// IsRegisterKindSize returns true if op is a register of the given kind and size in bytes.
func IsRegisterKindSize(op Op, k reg.Kind, n uint) bool {
r, ok := op.(reg.Type)
r, ok := op.(reg.Register)
return ok && r.Kind() == k && r.Bytes() == n
}

View File

@@ -12,8 +12,8 @@ type Op interface {
type Mem struct {
Disp int
Base reg.Register
Index reg.Register
Base reg.Physical
Index reg.Physical
Scale uint8
}