summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-11-01 11:25:28 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-11-01 11:25:28 +0000
commitd988b75c4424ed14521b59f0ffb09527be00958b (patch)
treea75f3ae2605702a3bd7f8f65d4ec77658e3bafcc /include
parent8a9674922911a2a02490dd8c4e5949085b774feb (diff)
downloadllvm-d988b75c4424ed14521b59f0ffb09527be00958b.tar.gz
llvm-d988b75c4424ed14521b59f0ffb09527be00958b.tar.bz2
llvm-d988b75c4424ed14521b59f0ffb09527be00958b.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index d93b5a9252..9cfb89fe9f 100644
--- a/include/llvm/Instructions.h
+++ b/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();
}