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
|
|
@ -1689,6 +1689,12 @@ class Instruction(User):
|
||||||
def set_metadata(self, kind, metadata):
|
def set_metadata(self, kind, metadata):
|
||||||
self._ptr.setMetadata(kind, metadata._ptr)
|
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
|
@property
|
||||||
def opcode(self):
|
def opcode(self):
|
||||||
return self._ptr.getOpcode()
|
return self._ptr.getOpcode()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue