From 6c2ed9a3ed6fa204dba3290fc0a1f992437eafa3 Mon Sep 17 00:00:00 2001 From: Siu Kwan Lam Date: Mon, 25 Mar 2013 11:23:16 -0500 Subject: [PATCH] Add some more to CallInst and StoreInst --- llvmpy/src/Instruction.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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