mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
[python-bindings] Added support for getting/setting operands of values and getting the number of operands of a value.
Also in the process did some cleanups for BasicBlock. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -115,9 +115,13 @@ class TestCore(TestBase):
|
||||
for inst in bb:
|
||||
self.assertEqual(inst.name, inst_list[i][0])
|
||||
self.assertEqual(inst.opcode, inst_list[i][1])
|
||||
for op in range(len(inst)):
|
||||
o = inst.get_operand(op)
|
||||
print o.name
|
||||
o.dump()
|
||||
inst.dump()
|
||||
i += 1
|
||||
|
||||
|
||||
# Backwards
|
||||
for inst in reversed(bb):
|
||||
i -= 1
|
||||
|
Reference in New Issue
Block a user