Bill Wendling | 4607f4b | 2012-12-20 01:36:59 +0000 | [diff] [blame] | 1 | //===-- AttributeImpl.h - Attribute Internals -------------------*- C++ -*-===// |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
Bill Wendling | 66e978f | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 9 | /// |
| 10 | /// \file |
| 11 | /// \brief This file defines various helper methods and classes used by |
| 12 | /// LLVMContextImpl for creating and managing attributes. |
| 13 | /// |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 14 | //===----------------------------------------------------------------------===// |
| 15 | |
| 16 | #ifndef LLVM_ATTRIBUTESIMPL_H |
| 17 | #define LLVM_ATTRIBUTESIMPL_H |
| 18 | |
| 19 | #include "llvm/ADT/FoldingSet.h" |
Chandler Carruth | 9fb823b | 2013-01-02 11:36:10 +0000 | [diff] [blame] | 20 | #include "llvm/IR/Attributes.h" |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 21 | #include <string> |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 22 | |
| 23 | namespace llvm { |
| 24 | |
Bill Wendling | 0cd0f7f | 2012-12-29 12:29:38 +0000 | [diff] [blame] | 25 | class Constant; |
Bill Wendling | 6ad6c3b | 2012-12-19 23:55:43 +0000 | [diff] [blame] | 26 | class LLVMContext; |
| 27 | |
Bill Wendling | 66e978f | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 28 | //===----------------------------------------------------------------------===// |
| 29 | /// \class |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 30 | /// \brief This class represents a single, uniqued attribute. That attribute |
| 31 | /// could be a single enum, a tuple, or a string. |
Benjamin Kramer | 079b96e | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 32 | class AttributeImpl : public FoldingSetNode { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 33 | unsigned char KindID; ///< Holds the AttrEntryKind of the attribute |
| 34 | |
| 35 | // AttributesImpl is uniqued, these should not be publicly available. |
| 36 | void operator=(const AttributeImpl &) LLVM_DELETED_FUNCTION; |
| 37 | AttributeImpl(const AttributeImpl &) LLVM_DELETED_FUNCTION; |
| 38 | |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 39 | protected: |
| 40 | enum AttrEntryKind { |
| 41 | EnumAttrEntry, |
| 42 | AlignAttrEntry, |
| 43 | StringAttrEntry |
| 44 | }; |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 45 | |
| 46 | AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} |
| 47 | |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 48 | public: |
Alexey Samsonov | 49109a2 | 2013-11-18 09:31:53 +0000 | [diff] [blame] | 49 | virtual ~AttributeImpl(); |
| 50 | |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 51 | bool isEnumAttribute() const { return KindID == EnumAttrEntry; } |
| 52 | bool isAlignAttribute() const { return KindID == AlignAttrEntry; } |
| 53 | bool isStringAttribute() const { return KindID == StringAttrEntry; } |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 54 | |
Bill Wendling | 9ac69f9 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 55 | bool hasAttribute(Attribute::AttrKind A) const; |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 56 | bool hasAttribute(StringRef Kind) const; |
Bill Wendling | 73ea2de | 2012-10-08 21:47:17 +0000 | [diff] [blame] | 57 | |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 58 | Attribute::AttrKind getKindAsEnum() const; |
| 59 | uint64_t getValueAsInt() const; |
Bill Wendling | c3c714b | 2013-01-29 20:37:10 +0000 | [diff] [blame] | 60 | |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 61 | StringRef getKindAsString() const; |
| 62 | StringRef getValueAsString() const; |
Bill Wendling | b1d1261 | 2012-12-30 01:38:39 +0000 | [diff] [blame] | 63 | |
Bill Wendling | 9c2eba9 | 2013-01-31 20:59:05 +0000 | [diff] [blame] | 64 | /// \brief Used when sorting the attributes. |
Bill Wendling | d2e493b | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 65 | bool operator<(const AttributeImpl &AI) const; |
| 66 | |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 67 | void Profile(FoldingSetNodeID &ID) const { |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 68 | if (isEnumAttribute()) |
| 69 | Profile(ID, getKindAsEnum(), 0); |
| 70 | else if (isAlignAttribute()) |
| 71 | Profile(ID, getKindAsEnum(), getValueAsInt()); |
| 72 | else |
| 73 | Profile(ID, getKindAsString(), getValueAsString()); |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 74 | } |
Bill Wendling | 3f12ac2 | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 75 | static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, |
| 76 | uint64_t Val) { |
| 77 | ID.AddInteger(Kind); |
| 78 | if (Val) ID.AddInteger(Val); |
| 79 | } |
| 80 | static void Profile(FoldingSetNodeID &ID, StringRef Kind, StringRef Values) { |
| 81 | ID.AddString(Kind); |
Bill Wendling | 8a0e084 | 2013-02-28 21:17:03 +0000 | [diff] [blame] | 82 | if (!Values.empty()) ID.AddString(Values); |
Bill Wendling | d509a66 | 2013-01-29 00:34:06 +0000 | [diff] [blame] | 83 | } |
| 84 | |
Bill Wendling | 3f9fcd4 | 2013-02-01 00:48:14 +0000 | [diff] [blame] | 85 | // FIXME: Remove this! |
Bill Wendling | d509a66 | 2013-01-29 00:34:06 +0000 | [diff] [blame] | 86 | static uint64_t getAttrMask(Attribute::AttrKind Val); |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 87 | }; |
| 88 | |
Bill Wendling | 66e978f | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 89 | //===----------------------------------------------------------------------===// |
| 90 | /// \class |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 91 | /// \brief A set of classes that contain the value of the |
| 92 | /// attribute object. There are three main categories: enum attribute entries, |
| 93 | /// represented by Attribute::AttrKind; alignment attribute entries; and string |
| 94 | /// attribute enties, which are for target-dependent attributes. |
| 95 | |
Benjamin Kramer | 079b96e | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 96 | class EnumAttributeImpl : public AttributeImpl { |
Juergen Ributzka | d12ccbd | 2013-11-19 00:57:56 +0000 | [diff] [blame^] | 97 | virtual void anchor(); |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 98 | Attribute::AttrKind Kind; |
| 99 | |
| 100 | protected: |
| 101 | EnumAttributeImpl(AttrEntryKind ID, Attribute::AttrKind Kind) |
| 102 | : AttributeImpl(ID), Kind(Kind) {} |
| 103 | |
| 104 | public: |
| 105 | EnumAttributeImpl(Attribute::AttrKind Kind) |
| 106 | : AttributeImpl(EnumAttrEntry), Kind(Kind) {} |
| 107 | |
| 108 | Attribute::AttrKind getEnumKind() const { return Kind; } |
| 109 | }; |
| 110 | |
Benjamin Kramer | 079b96e | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 111 | class AlignAttributeImpl : public EnumAttributeImpl { |
Juergen Ributzka | d12ccbd | 2013-11-19 00:57:56 +0000 | [diff] [blame^] | 112 | virtual void anchor(); |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 113 | unsigned Align; |
| 114 | |
| 115 | public: |
| 116 | AlignAttributeImpl(Attribute::AttrKind Kind, unsigned Align) |
| 117 | : EnumAttributeImpl(AlignAttrEntry, Kind), Align(Align) { |
| 118 | assert( |
| 119 | (Kind == Attribute::Alignment || Kind == Attribute::StackAlignment) && |
| 120 | "Wrong kind for alignment attribute!"); |
| 121 | } |
| 122 | |
| 123 | unsigned getAlignment() const { return Align; } |
| 124 | }; |
| 125 | |
Benjamin Kramer | 079b96e | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 126 | class StringAttributeImpl : public AttributeImpl { |
Juergen Ributzka | d12ccbd | 2013-11-19 00:57:56 +0000 | [diff] [blame^] | 127 | virtual void anchor(); |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 128 | std::string Kind; |
| 129 | std::string Val; |
| 130 | |
| 131 | public: |
| 132 | StringAttributeImpl(StringRef Kind, StringRef Val = StringRef()) |
| 133 | : AttributeImpl(StringAttrEntry), Kind(Kind), Val(Val) {} |
| 134 | |
| 135 | StringRef getStringKind() const { return Kind; } |
| 136 | StringRef getStringValue() const { return Val; } |
| 137 | }; |
| 138 | |
| 139 | //===----------------------------------------------------------------------===// |
| 140 | /// \class |
Bill Wendling | d2e493b | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 141 | /// \brief This class represents a group of attributes that apply to one |
| 142 | /// element: function, return type, or parameter. |
Benjamin Kramer | 079b96e | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 143 | class AttributeSetNode : public FoldingSetNode { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 144 | unsigned NumAttrs; ///< Number of attributes in this node. |
Bill Wendling | d2e493b | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 145 | |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 146 | AttributeSetNode(ArrayRef<Attribute> Attrs) : NumAttrs(Attrs.size()) { |
| 147 | // There's memory after the node where we can store the entries in. |
| 148 | std::copy(Attrs.begin(), Attrs.end(), |
| 149 | reinterpret_cast<Attribute *>(this + 1)); |
| 150 | } |
Bill Wendling | 97b4f70 | 2013-01-27 21:38:03 +0000 | [diff] [blame] | 151 | |
| 152 | // AttributesSetNode is uniqued, these should not be publicly available. |
| 153 | void operator=(const AttributeSetNode &) LLVM_DELETED_FUNCTION; |
| 154 | AttributeSetNode(const AttributeSetNode &) LLVM_DELETED_FUNCTION; |
Bill Wendling | d2e493b | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 155 | public: |
| 156 | static AttributeSetNode *get(LLVMContext &C, ArrayRef<Attribute> Attrs); |
| 157 | |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 158 | bool hasAttribute(Attribute::AttrKind Kind) const; |
Bill Wendling | bce7b97 | 2013-02-13 08:42:21 +0000 | [diff] [blame] | 159 | bool hasAttribute(StringRef Kind) const; |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 160 | bool hasAttributes() const { return NumAttrs != 0; } |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 161 | |
Bill Wendling | bce7b97 | 2013-02-13 08:42:21 +0000 | [diff] [blame] | 162 | Attribute getAttribute(Attribute::AttrKind Kind) const; |
| 163 | Attribute getAttribute(StringRef Kind) const; |
| 164 | |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 165 | unsigned getAlignment() const; |
| 166 | unsigned getStackAlignment() const; |
Rafael Espindola | cbf5a7a | 2013-05-01 13:07:03 +0000 | [diff] [blame] | 167 | std::string getAsString(bool InAttrGrp) const; |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 168 | |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 169 | typedef const Attribute *iterator; |
| 170 | iterator begin() const { return reinterpret_cast<iterator>(this + 1); } |
| 171 | iterator end() const { return begin() + NumAttrs; } |
Bill Wendling | d2e493b | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 172 | |
| 173 | void Profile(FoldingSetNodeID &ID) const { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 174 | Profile(ID, makeArrayRef(begin(), end())); |
Bill Wendling | d2e493b | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 175 | } |
| 176 | static void Profile(FoldingSetNodeID &ID, ArrayRef<Attribute> AttrList) { |
| 177 | for (unsigned I = 0, E = AttrList.size(); I != E; ++I) |
| 178 | AttrList[I].Profile(ID); |
| 179 | } |
| 180 | }; |
| 181 | |
| 182 | //===----------------------------------------------------------------------===// |
| 183 | /// \class |
| 184 | /// \brief This class represents a set of attributes that apply to the function, |
| 185 | /// return type, and parameters. |
Benjamin Kramer | 079b96e | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 186 | class AttributeSetImpl : public FoldingSetNode { |
Bill Wendling | 57625a4 | 2013-01-25 23:09:36 +0000 | [diff] [blame] | 187 | friend class AttributeSet; |
| 188 | |
Bill Wendling | 9ac69f9 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 189 | LLVMContext &Context; |
Bill Wendling | 9ac69f9 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 190 | |
Bill Wendling | eeebb13 | 2013-01-28 22:33:39 +0000 | [diff] [blame] | 191 | typedef std::pair<unsigned, AttributeSetNode*> IndexAttrPair; |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 192 | unsigned NumAttrs; ///< Number of entries in this set. |
| 193 | |
| 194 | /// \brief Return a pointer to the IndexAttrPair for the specified slot. |
| 195 | const IndexAttrPair *getNode(unsigned Slot) const { |
| 196 | return reinterpret_cast<const IndexAttrPair *>(this + 1) + Slot; |
| 197 | } |
Bill Wendling | 39a4c80 | 2013-01-24 01:01:34 +0000 | [diff] [blame] | 198 | |
Bill Wendling | 698e84f | 2012-12-30 10:32:01 +0000 | [diff] [blame] | 199 | // AttributesSet is uniqued, these should not be publicly available. |
Bill Wendling | 6848e38 | 2012-12-19 22:42:22 +0000 | [diff] [blame] | 200 | void operator=(const AttributeSetImpl &) LLVM_DELETED_FUNCTION; |
| 201 | AttributeSetImpl(const AttributeSetImpl &) LLVM_DELETED_FUNCTION; |
Bill Wendling | f86efb9 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 202 | public: |
Bill Wendling | ec45454 | 2013-01-28 21:55:20 +0000 | [diff] [blame] | 203 | AttributeSetImpl(LLVMContext &C, |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 204 | ArrayRef<std::pair<unsigned, AttributeSetNode *> > Attrs) |
| 205 | : Context(C), NumAttrs(Attrs.size()) { |
Peter Collingbourne | bd6c745 | 2013-08-02 22:29:40 +0000 | [diff] [blame] | 206 | #ifndef NDEBUG |
| 207 | if (Attrs.size() >= 2) { |
| 208 | for (const std::pair<unsigned, AttributeSetNode *> *i = Attrs.begin() + 1, |
| 209 | *e = Attrs.end(); |
| 210 | i != e; ++i) { |
| 211 | assert((i-1)->first <= i->first && "Attribute set not ordered!"); |
| 212 | } |
| 213 | } |
| 214 | #endif |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 215 | // There's memory after the node where we can store the entries in. |
| 216 | std::copy(Attrs.begin(), Attrs.end(), |
| 217 | reinterpret_cast<IndexAttrPair *>(this + 1)); |
| 218 | } |
Bill Wendling | 9ac69f9 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 219 | |
Bill Wendling | 5c8b2df | 2013-01-27 21:32:11 +0000 | [diff] [blame] | 220 | /// \brief Get the context that created this AttributeSetImpl. |
Bill Wendling | 9ac69f9 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 221 | LLVMContext &getContext() { return Context; } |
Bill Wendling | 5c8b2df | 2013-01-27 21:32:11 +0000 | [diff] [blame] | 222 | |
Bill Wendling | 5c8b2df | 2013-01-27 21:32:11 +0000 | [diff] [blame] | 223 | /// \brief Return the number of attributes this AttributeSet contains. |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 224 | unsigned getNumAttributes() const { return NumAttrs; } |
Bill Wendling | 5c8b2df | 2013-01-27 21:32:11 +0000 | [diff] [blame] | 225 | |
| 226 | /// \brief Get the index of the given "slot" in the AttrNodes list. This index |
| 227 | /// is the index of the return, parameter, or function object that the |
| 228 | /// attributes are applied to, not the index into the AttrNodes list where the |
| 229 | /// attributes reside. |
Rafael Espindola | dd27530 | 2013-04-30 16:53:38 +0000 | [diff] [blame] | 230 | unsigned getSlotIndex(unsigned Slot) const { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 231 | return getNode(Slot)->first; |
Bill Wendling | 9eb689c | 2013-01-28 00:21:34 +0000 | [diff] [blame] | 232 | } |
Bill Wendling | 5c8b2df | 2013-01-27 21:32:11 +0000 | [diff] [blame] | 233 | |
| 234 | /// \brief Retrieve the attributes for the given "slot" in the AttrNode list. |
| 235 | /// \p Slot is an index into the AttrNodes list, not the index of the return / |
| 236 | /// parameter/ function which the attributes apply to. |
Bill Wendling | 57625a4 | 2013-01-25 23:09:36 +0000 | [diff] [blame] | 237 | AttributeSet getSlotAttributes(unsigned Slot) const { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 238 | return AttributeSet::get(Context, *getNode(Slot)); |
Bill Wendling | 57625a4 | 2013-01-25 23:09:36 +0000 | [diff] [blame] | 239 | } |
Bill Wendling | f86efb9 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 240 | |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 241 | /// \brief Retrieve the attribute set node for the given "slot" in the |
| 242 | /// AttrNode list. |
| 243 | AttributeSetNode *getSlotNode(unsigned Slot) const { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 244 | return getNode(Slot)->second; |
Bill Wendling | f2955aa | 2013-01-29 03:20:31 +0000 | [diff] [blame] | 245 | } |
| 246 | |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 247 | typedef AttributeSetNode::iterator iterator; |
| 248 | iterator begin(unsigned Slot) const { return getSlotNode(Slot)->begin(); } |
| 249 | iterator end(unsigned Slot) const { return getSlotNode(Slot)->end(); } |
Bill Wendling | 9eb689c | 2013-01-28 00:21:34 +0000 | [diff] [blame] | 250 | |
Bill Wendling | f86efb9 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 251 | void Profile(FoldingSetNodeID &ID) const { |
Benjamin Kramer | 741146b | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 252 | Profile(ID, makeArrayRef(getNode(0), getNumAttributes())); |
Bill Wendling | f86efb9 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 253 | } |
Bill Wendling | 9ac69f9 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 254 | static void Profile(FoldingSetNodeID &ID, |
Bill Wendling | eeebb13 | 2013-01-28 22:33:39 +0000 | [diff] [blame] | 255 | ArrayRef<std::pair<unsigned, AttributeSetNode*> > Nodes) { |
Bill Wendling | 39a4c80 | 2013-01-24 01:01:34 +0000 | [diff] [blame] | 256 | for (unsigned i = 0, e = Nodes.size(); i != e; ++i) { |
| 257 | ID.AddInteger(Nodes[i].first); |
| 258 | ID.AddPointer(Nodes[i].second); |
| 259 | } |
| 260 | } |
Bill Wendling | 1f786a7 | 2013-01-27 23:41:29 +0000 | [diff] [blame] | 261 | |
| 262 | // FIXME: This atrocity is temporary. |
Rafael Espindola | dd27530 | 2013-04-30 16:53:38 +0000 | [diff] [blame] | 263 | uint64_t Raw(unsigned Index) const; |
Peter Collingbourne | abca2ec | 2013-08-02 22:34:30 +0000 | [diff] [blame] | 264 | |
| 265 | void dump() const; |
Bill Wendling | f86efb9 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 266 | }; |
| 267 | |
Bill Wendling | e38b804 | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 268 | } // end llvm namespace |
| 269 | |
| 270 | #endif |