summaryrefslogtreecommitdiff
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-31 08:35:21 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-31 08:35:21 +0000
commit0114b9990ae11d49356513e781a375803df95208 (patch)
treed138ad1d63f0abf33ddfd1d9c6fb9cea67274faf /include/llvm/Instructions.h
parent0cd1ee2308112303ceb5465177665900bddcb6a3 (diff)
downloadllvm-0114b9990ae11d49356513e781a375803df95208.tar.gz
llvm-0114b9990ae11d49356513e781a375803df95208.tar.bz2
llvm-0114b9990ae11d49356513e781a375803df95208.tar.xz
doxygenize argument accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 273c9951c6..b4c88ca8d2 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); }