Add methods to instructions to retrieve metadata and determine if metadata exists for the instruction.
This commit is contained in:
parent
020032b578
commit
e74b26f84c
1 changed files with 6 additions and 0 deletions
|
|
@ -1688,6 +1688,12 @@ class Instruction(User):
|
|||
|
||||
def set_metadata(self, kind, metadata):
|
||||
self._ptr.setMetadata(kind, metadata._ptr)
|
||||
|
||||
def has_metadata(self):
|
||||
return self._ptr.hasMetadata()
|
||||
|
||||
def get_metadata(self, kind):
|
||||
return self._ptr.getMetadata(kind)
|
||||
|
||||
@property
|
||||
def opcode(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue