summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit03eefb3a3887a706efeffc8752057ae1a6b76c71 (patch)
tree2450aea178916e8c6f34edd49f995ce38c9c02d0 /llvm/include
parentc3c714ba7eaa9ef839680d774a90a6545d247899 (diff)
downloadbcm5719-llvm-03eefb3a3887a706efeffc8752057ae1a6b76c71.tar.gz
bcm5719-llvm-03eefb3a3887a706efeffc8752057ae1a6b76c71.zip
Add a couple of accessor methods to get the kind and values of an attribute.
llvm-svn: 173828
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/Attributes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index 1578789df60..5ebb6296cd6 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud