diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-11-01 11:25:28 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-11-01 11:25:28 +0000 |
commit | 49d7e23b140b58d55adeaf41ec5955922c285c8c (patch) | |
tree | 70c4d44be97b4f26f76423099740a61f4ec5468c | |
parent | 43120f497385e2507816f4073b235f4da3a094aa (diff) | |
download | llvm-49d7e23b140b58d55adeaf41ec5955922c285c8c.zip llvm-49d7e23b140b58d55adeaf41ec5955922c285c8c.tar.gz llvm-49d7e23b140b58d55adeaf41ec5955922c285c8c.tar.bz2 |
Add some consistent doxygen comments for the address space helpers.
These clarify that the methods called 'getPointerAddressSpace' apply to
the pointer *operand* of the instruction.
llvm-svn: 167228
-rw-r--r-- | llvm/include/llvm/Instructions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index d93b5a92..9cfb89f 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/include/llvm/Instructions.h @@ -225,6 +225,7 @@ public: const Value *getPointerOperand() const { return getOperand(0); } static unsigned getPointerOperandIndex() { return 0U; } + /// \brief Returns the address space of the pointer operand. unsigned getPointerAddressSpace() const { return getPointerOperand()->getType()->getPointerAddressSpace(); } @@ -347,6 +348,7 @@ public: const Value *getPointerOperand() const { return getOperand(1); } static unsigned getPointerOperandIndex() { return 1U; } + /// \brief Returns the address space of the pointer operand. unsigned getPointerAddressSpace() const { return getPointerOperand()->getType()->getPointerAddressSpace(); } @@ -517,6 +519,7 @@ public: Value *getNewValOperand() { return getOperand(2); } const Value *getNewValOperand() const { return getOperand(2); } + /// \brief Returns the address space of the pointer operand. unsigned getPointerAddressSpace() const { return getPointerOperand()->getType()->getPointerAddressSpace(); } @@ -660,6 +663,7 @@ public: Value *getValOperand() { return getOperand(1); } const Value *getValOperand() const { return getOperand(1); } + /// \brief Returns the address space of the pointer operand. unsigned getPointerAddressSpace() const { return getPointerOperand()->getType()->getPointerAddressSpace(); } @@ -793,6 +797,7 @@ public: return getPointerOperand()->getType(); } + /// \brief Returns the address space of the pointer operand. unsigned getPointerAddressSpace() const { return getPointerOperandType()->getPointerAddressSpace(); } |