summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-29 20:45:34 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-29 20:45:34 +0000
commit6dc3781d44e56f0addf28b06232a50f3f9e6b1af (patch)
tree21edb3db20ba66b5373175ecba30a9d36f03eafc /include
parent9f175f88190fae22df9c6e68af618d0493477ff9 (diff)
downloadllvm-6dc3781d44e56f0addf28b06232a50f3f9e6b1af.tar.gz
llvm-6dc3781d44e56f0addf28b06232a50f3f9e6b1af.tar.bz2
llvm-6dc3781d44e56f0addf28b06232a50f3f9e6b1af.tar.xz
Add a couple of accessor methods to get the kind and values of an attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Attributes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 1578789df6..5ebb6296cd 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -28,6 +28,7 @@ class AttrBuilder;
class AttributeImpl;
class AttributeSetImpl;
class AttributeSetNode;
+class Constant;
class LLVMContext;
class Type;
@@ -130,6 +131,12 @@ public:
/// \brief Return true if attributes exist
bool hasAttributes() const;
+ /// \brief Return the kind of this attribute.
+ Constant *getAttributeKind() const;
+
+ /// \brief Return the value (if present) of the non-target-specific attribute.
+ ArrayRef<Constant*> getAttributeValues() const;
+
/// \brief Returns the alignment field of an attribute as a byte alignment
/// value.
unsigned getAlignment() const;