(self, other: Union[str, 'ILRegister'])
| 106 | return self.index |
| 107 | |
| 108 | def __eq__(self, other: Union[str, 'ILRegister']): |
| 109 | if isinstance(other, str) and other in self.arch.regs: |
| 110 | index = self.arch.regs[architecture.RegisterName(other)].index |
| 111 | assert index is not None |
| 112 | other = ILRegister(self.arch, index) |
| 113 | elif not isinstance(other, self.__class__): |
| 114 | return NotImplemented |
| 115 | return (self.arch, self.index) == (other.arch, other.index) |
| 116 | |
| 117 | @property |
| 118 | def info(self) -> 'architecture.RegisterInfo': |