From: Gabor Greif Date: Sat, 31 Jul 2010 08:35:21 +0000 (+0000) Subject: doxygenize argument accessors X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0114b9990ae11d49356513e781a375803df95208;p=oota-llvm.git doxygenize argument accessors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109950 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 273c9951c62..b4c88ca8d24 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -964,7 +964,12 @@ public: # undef protected public: + /// getNumArgOperands - Return the number of call arguments. + /// unsigned getNumArgOperands() const { return getNumOperands() - 1; } + + /// getArgOperand/setArgOperand - Return/set the i-th call argument. + /// Value *getArgOperand(unsigned i) const { return getOperand(i); } void setArgOperand(unsigned i, Value *v) { setOperand(i, v); } @@ -2460,7 +2465,12 @@ public: /// Provide fast operand accessors DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value); + /// getNumArgOperands - Return the number of invoke arguments. + /// unsigned getNumArgOperands() const { return getNumOperands() - 3; } + + /// getArgOperand/setArgOperand - Return/set the i-th invoke argument. + /// Value *getArgOperand(unsigned i) const { return getOperand(i); } void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }