rename some register types
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user