Add some more to CallInst and StoreInst

This commit is contained in:
Siu Kwan Lam 2013-03-25 11:23:16 -05:00
commit 6c2ed9a3ed

View file

@ -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