diff --git a/llvmpy/src/Instruction.py b/llvmpy/src/Instruction.py index edde8bc..e17e8a1 100644 --- a/llvmpy/src/Instruction.py +++ b/llvmpy/src/Instruction.py @@ -161,6 +161,10 @@ class CallInst: CreateFree = StaticMethod(ptr(Instruction), ptr(Value), ptr(BasicBlock)) + getNumArgOperands = Method(cast(Unsigned, int)) + getArgOperand = Method(ptr(Value), cast(int, Unsigned)) + setArgOperand = Method(Void, cast(int, Unsigned), ptr(Value)) + @CmpInst class CmpInst: _downcast_ = Value, User, Instruction @@ -239,6 +243,10 @@ class StoreInst: AtomicOrdering, SynchronizationScope).require_only(1) + getValueOperand = Method(ptr(Value)) + getPointerOperand = Method(ptr(Value)) + getPointerAddressSpace = Method(cast(Unsigned, int)) + classof = StaticMethod(cast(Bool, bool), ptr(Value)) @TerminatorInst