Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 1 | //===- AttributeImpl.h - Attribute Internals --------------------*- C++ -*-===// |
Bill Wendling | 2c79ecb | 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 | 27107f6 | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 9 | /// |
| 10 | /// \file |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 11 | /// This file defines various helper methods and classes used by |
Bill Wendling | 27107f6 | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 12 | /// LLVMContextImpl for creating and managing attributes. |
| 13 | /// |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 14 | //===----------------------------------------------------------------------===// |
| 15 | |
Benjamin Kramer | 00e08fc | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 16 | #ifndef LLVM_LIB_IR_ATTRIBUTEIMPL_H |
| 17 | #define LLVM_LIB_IR_ATTRIBUTEIMPL_H |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 18 | |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 19 | #include "llvm/ADT/ArrayRef.h" |
| 20 | #include "llvm/ADT/FoldingSet.h" |
| 21 | #include "llvm/ADT/StringRef.h" |
| 22 | #include "llvm/IR/Attributes.h" |
| 23 | #include "llvm/Support/TrailingObjects.h" |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 24 | #include <cassert> |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 25 | #include <cstddef> |
| 26 | #include <cstdint> |
Matthias Braun | 7448ec5 | 2016-01-29 22:35:29 +0000 | [diff] [blame] | 27 | #include <string> |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 28 | #include <utility> |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 29 | |
| 30 | namespace llvm { |
| 31 | |
Bill Wendling | 5f93e2b | 2012-12-19 23:55:43 +0000 | [diff] [blame] | 32 | class LLVMContext; |
| 33 | |
Bill Wendling | 27107f6 | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 34 | //===----------------------------------------------------------------------===// |
| 35 | /// \class |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 36 | /// This class represents a single, uniqued attribute. That attribute |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 37 | /// could be a single enum, a tuple, or a string. |
Benjamin Kramer | 55c06ae | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 38 | class AttributeImpl : public FoldingSetNode { |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 39 | unsigned char KindID; ///< Holds the AttrEntryKind of the attribute |
| 40 | |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 41 | protected: |
| 42 | enum AttrEntryKind { |
| 43 | EnumAttrEntry, |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 44 | IntAttrEntry, |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 45 | StringAttrEntry |
| 46 | }; |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 47 | |
| 48 | AttributeImpl(AttrEntryKind KindID) : KindID(KindID) {} |
| 49 | |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 50 | public: |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 51 | // AttributesImpl is uniqued, these should not be available. |
| 52 | AttributeImpl(const AttributeImpl &) = delete; |
| 53 | AttributeImpl &operator=(const AttributeImpl &) = delete; |
| 54 | |
Alexey Samsonov | b21ab43 | 2013-11-18 09:31:53 +0000 | [diff] [blame] | 55 | virtual ~AttributeImpl(); |
| 56 | |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 57 | bool isEnumAttribute() const { return KindID == EnumAttrEntry; } |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 58 | bool isIntAttribute() const { return KindID == IntAttrEntry; } |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 59 | bool isStringAttribute() const { return KindID == StringAttrEntry; } |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 60 | |
Bill Wendling | 60507d5 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 61 | bool hasAttribute(Attribute::AttrKind A) const; |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 62 | bool hasAttribute(StringRef Kind) const; |
Bill Wendling | 8e635db | 2012-10-08 21:47:17 +0000 | [diff] [blame] | 63 | |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 64 | Attribute::AttrKind getKindAsEnum() const; |
| 65 | uint64_t getValueAsInt() const; |
Bill Wendling | 9f175f8 | 2013-01-29 20:37:10 +0000 | [diff] [blame] | 66 | |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 67 | StringRef getKindAsString() const; |
| 68 | StringRef getValueAsString() const; |
Bill Wendling | 529ec71 | 2012-12-30 01:38:39 +0000 | [diff] [blame] | 69 | |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 70 | /// Used when sorting the attributes. |
Bill Wendling | 3467e30 | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 71 | bool operator<(const AttributeImpl &AI) const; |
| 72 | |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 73 | void Profile(FoldingSetNodeID &ID) const { |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 74 | if (isEnumAttribute()) |
| 75 | Profile(ID, getKindAsEnum(), 0); |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 76 | else if (isIntAttribute()) |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 77 | Profile(ID, getKindAsEnum(), getValueAsInt()); |
| 78 | else |
| 79 | Profile(ID, getKindAsString(), getValueAsString()); |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 80 | } |
Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 81 | |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 82 | static void Profile(FoldingSetNodeID &ID, Attribute::AttrKind Kind, |
| 83 | uint64_t Val) { |
| 84 | ID.AddInteger(Kind); |
| 85 | if (Val) ID.AddInteger(Val); |
| 86 | } |
Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 87 | |
Bill Wendling | 8c74ecf | 2013-02-05 22:37:24 +0000 | [diff] [blame] | 88 | static void Profile(FoldingSetNodeID &ID, StringRef Kind, StringRef Values) { |
| 89 | ID.AddString(Kind); |
Bill Wendling | 40c81fe | 2013-02-28 21:17:03 +0000 | [diff] [blame] | 90 | if (!Values.empty()) ID.AddString(Values); |
Bill Wendling | c22f4aa | 2013-01-29 00:34:06 +0000 | [diff] [blame] | 91 | } |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 92 | }; |
| 93 | |
Bill Wendling | 27107f6 | 2012-12-20 21:28:43 +0000 | [diff] [blame] | 94 | //===----------------------------------------------------------------------===// |
| 95 | /// \class |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 96 | /// A set of classes that contain the value of the |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 97 | /// attribute object. There are three main categories: enum attribute entries, |
| 98 | /// represented by Attribute::AttrKind; alignment attribute entries; and string |
| 99 | /// attribute enties, which are for target-dependent attributes. |
| 100 | |
Benjamin Kramer | 55c06ae | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 101 | class EnumAttributeImpl : public AttributeImpl { |
Juergen Ributzka | 3543625 | 2013-11-19 00:57:56 +0000 | [diff] [blame] | 102 | virtual void anchor(); |
Eugene Zelenko | f193400 | 2017-06-19 22:05:08 +0000 | [diff] [blame] | 103 | |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 104 | Attribute::AttrKind Kind; |
| 105 | |
| 106 | protected: |
| 107 | EnumAttributeImpl(AttrEntryKind ID, Attribute::AttrKind Kind) |
| 108 | : AttributeImpl(ID), Kind(Kind) {} |
| 109 | |
| 110 | public: |
| 111 | EnumAttributeImpl(Attribute::AttrKind Kind) |
| 112 | : AttributeImpl(EnumAttrEntry), Kind(Kind) {} |
| 113 | |
| 114 | Attribute::AttrKind getEnumKind() const { return Kind; } |
| 115 | }; |
| 116 | |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 117 | class IntAttributeImpl : public EnumAttributeImpl { |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 118 | uint64_t Val; |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 119 | |
Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 120 | void anchor() override; |
| 121 | |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 122 | public: |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 123 | IntAttributeImpl(Attribute::AttrKind Kind, uint64_t Val) |
| 124 | : EnumAttributeImpl(IntAttrEntry, Kind), Val(Val) { |
Sanjoy Das | 5ff5907 | 2015-04-16 20:29:50 +0000 | [diff] [blame] | 125 | assert((Kind == Attribute::Alignment || Kind == Attribute::StackAlignment || |
| 126 | Kind == Attribute::Dereferenceable || |
George Burgess IV | 274105b | 2016-04-12 01:05:35 +0000 | [diff] [blame] | 127 | Kind == Attribute::DereferenceableOrNull || |
| 128 | Kind == Attribute::AllocSize) && |
Sanjoy Das | 5ff5907 | 2015-04-16 20:29:50 +0000 | [diff] [blame] | 129 | "Wrong kind for int attribute!"); |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 130 | } |
| 131 | |
Hal Finkel | d026168 | 2014-07-18 06:51:55 +0000 | [diff] [blame] | 132 | uint64_t getValue() const { return Val; } |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 133 | }; |
| 134 | |
Benjamin Kramer | 55c06ae | 2013-09-11 18:05:11 +0000 | [diff] [blame] | 135 | class StringAttributeImpl : public AttributeImpl { |
Juergen Ributzka | 3543625 | 2013-11-19 00:57:56 +0000 | [diff] [blame] | 136 | virtual void anchor(); |
Eugene Zelenko | f193400 | 2017-06-19 22:05:08 +0000 | [diff] [blame] | 137 | |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 138 | std::string Kind; |
| 139 | std::string Val; |
| 140 | |
| 141 | public: |
| 142 | StringAttributeImpl(StringRef Kind, StringRef Val = StringRef()) |
| 143 | : AttributeImpl(StringAttrEntry), Kind(Kind), Val(Val) {} |
| 144 | |
| 145 | StringRef getStringKind() const { return Kind; } |
| 146 | StringRef getStringValue() const { return Val; } |
| 147 | }; |
| 148 | |
Reid Kleckner | 0609040 | 2017-04-12 00:38:00 +0000 | [diff] [blame] | 149 | //===----------------------------------------------------------------------===// |
| 150 | /// \class |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 151 | /// This class represents a group of attributes that apply to one |
Reid Kleckner | 0609040 | 2017-04-12 00:38:00 +0000 | [diff] [blame] | 152 | /// element: function, return type, or parameter. |
| 153 | class AttributeSetNode final |
| 154 | : public FoldingSetNode, |
| 155 | private TrailingObjects<AttributeSetNode, Attribute> { |
| 156 | friend TrailingObjects; |
| 157 | |
| 158 | /// Bitset with a bit for each available attribute Attribute::AttrKind. |
| 159 | uint64_t AvailableAttrs; |
| 160 | unsigned NumAttrs; ///< Number of attributes in this node. |
| 161 | |
| 162 | AttributeSetNode(ArrayRef<Attribute> Attrs); |
| 163 | |
| 164 | public: |
| 165 | // AttributesSetNode is uniqued, these should not be available. |
| 166 | AttributeSetNode(const AttributeSetNode &) = delete; |
| 167 | AttributeSetNode &operator=(const AttributeSetNode &) = delete; |
| 168 | |
| 169 | void operator delete(void *p) { ::operator delete(p); } |
| 170 | |
| 171 | static AttributeSetNode *get(LLVMContext &C, const AttrBuilder &B); |
| 172 | |
| 173 | static AttributeSetNode *get(LLVMContext &C, ArrayRef<Attribute> Attrs); |
| 174 | |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 175 | /// Return the number of attributes this AttributeList contains. |
Reid Kleckner | 0609040 | 2017-04-12 00:38:00 +0000 | [diff] [blame] | 176 | unsigned getNumAttributes() const { return NumAttrs; } |
| 177 | |
| 178 | bool hasAttribute(Attribute::AttrKind Kind) const { |
| 179 | return AvailableAttrs & ((uint64_t)1) << Kind; |
| 180 | } |
| 181 | bool hasAttribute(StringRef Kind) const; |
| 182 | bool hasAttributes() const { return NumAttrs != 0; } |
| 183 | |
| 184 | Attribute getAttribute(Attribute::AttrKind Kind) const; |
| 185 | Attribute getAttribute(StringRef Kind) const; |
| 186 | |
| 187 | unsigned getAlignment() const; |
| 188 | unsigned getStackAlignment() const; |
| 189 | uint64_t getDereferenceableBytes() const; |
| 190 | uint64_t getDereferenceableOrNullBytes() const; |
| 191 | std::pair<unsigned, Optional<unsigned>> getAllocSizeArgs() const; |
| 192 | std::string getAsString(bool InAttrGrp) const; |
| 193 | |
Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 194 | using iterator = const Attribute *; |
| 195 | |
Reid Kleckner | 0609040 | 2017-04-12 00:38:00 +0000 | [diff] [blame] | 196 | iterator begin() const { return getTrailingObjects<Attribute>(); } |
| 197 | iterator end() const { return begin() + NumAttrs; } |
| 198 | |
| 199 | void Profile(FoldingSetNodeID &ID) const { |
| 200 | Profile(ID, makeArrayRef(begin(), end())); |
| 201 | } |
Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 202 | |
Reid Kleckner | 0609040 | 2017-04-12 00:38:00 +0000 | [diff] [blame] | 203 | static void Profile(FoldingSetNodeID &ID, ArrayRef<Attribute> AttrList) { |
| 204 | for (const auto &Attr : AttrList) |
| 205 | Attr.Profile(ID); |
| 206 | } |
| 207 | }; |
| 208 | |
Eugene Zelenko | 4679522 | 2017-05-15 21:57:41 +0000 | [diff] [blame] | 209 | using IndexAttrPair = std::pair<unsigned, AttributeSet>; |
NAKAMURA Takumi | 47e91a810 | 2015-08-06 09:49:17 +0000 | [diff] [blame] | 210 | |
Bill Wendling | 3467e30 | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 211 | //===----------------------------------------------------------------------===// |
| 212 | /// \class |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 213 | /// This class represents a set of attributes that apply to the function, |
Bill Wendling | 3467e30 | 2013-01-24 00:06:56 +0000 | [diff] [blame] | 214 | /// return type, and parameters. |
Reid Kleckner | 6707770 | 2017-03-21 16:57:19 +0000 | [diff] [blame] | 215 | class AttributeListImpl final |
James Y Knight | 1cf6cc7 | 2015-08-05 22:57:34 +0000 | [diff] [blame] | 216 | : public FoldingSetNode, |
Reid Kleckner | 90e7ab1 | 2017-05-23 17:01:48 +0000 | [diff] [blame] | 217 | private TrailingObjects<AttributeListImpl, AttributeSet> { |
Reid Kleckner | 6707770 | 2017-03-21 16:57:19 +0000 | [diff] [blame] | 218 | friend class AttributeList; |
James Y Knight | 1cf6cc7 | 2015-08-05 22:57:34 +0000 | [diff] [blame] | 219 | friend TrailingObjects; |
James Y Knight | 4a80b4b | 2015-06-17 01:21:20 +0000 | [diff] [blame] | 220 | |
| 221 | private: |
Matthias Braun | 1a0e291 | 2016-01-29 22:25:19 +0000 | [diff] [blame] | 222 | /// Bitset with a bit for each available attribute Attribute::AttrKind. |
| 223 | uint64_t AvailableFunctionAttrs; |
Reid Kleckner | 90e7ab1 | 2017-05-23 17:01:48 +0000 | [diff] [blame] | 224 | LLVMContext &Context; |
| 225 | unsigned NumAttrSets; ///< Number of entries in this set. |
Benjamin Kramer | e22cde0 | 2013-07-11 12:13:16 +0000 | [diff] [blame] | 226 | |
James Y Knight | 1cf6cc7 | 2015-08-05 22:57:34 +0000 | [diff] [blame] | 227 | // Helper fn for TrailingObjects class. |
Reid Kleckner | 90e7ab1 | 2017-05-23 17:01:48 +0000 | [diff] [blame] | 228 | size_t numTrailingObjects(OverloadToken<AttributeSet>) { return NumAttrSets; } |
Bill Wendling | bb08593 | 2013-01-24 01:01:34 +0000 | [diff] [blame] | 229 | |
Bill Wendling | 0976e00 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 230 | public: |
Reid Kleckner | 90e7ab1 | 2017-05-23 17:01:48 +0000 | [diff] [blame] | 231 | AttributeListImpl(LLVMContext &C, ArrayRef<AttributeSet> Sets); |
Bill Wendling | 60507d5 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 232 | |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 233 | // AttributesSetImpt is uniqued, these should not be available. |
Reid Kleckner | 6707770 | 2017-03-21 16:57:19 +0000 | [diff] [blame] | 234 | AttributeListImpl(const AttributeListImpl &) = delete; |
| 235 | AttributeListImpl &operator=(const AttributeListImpl &) = delete; |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 236 | |
Richard Smith | 749e602 | 2016-02-09 02:09:16 +0000 | [diff] [blame] | 237 | void operator delete(void *p) { ::operator delete(p); } |
Richard Smith | bca133d | 2016-02-09 01:03:42 +0000 | [diff] [blame] | 238 | |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 239 | /// Get the context that created this AttributeListImpl. |
Bill Wendling | 60507d5 | 2013-01-04 20:54:35 +0000 | [diff] [blame] | 240 | LLVMContext &getContext() { return Context; } |
Bill Wendling | 893eac1 | 2013-01-27 21:32:11 +0000 | [diff] [blame] | 241 | |
Adrian Prantl | 26b584c | 2018-05-01 15:54:18 +0000 | [diff] [blame] | 242 | /// Return true if the AttributeSet or the FunctionIndex has an |
Matthias Braun | 1a0e291 | 2016-01-29 22:25:19 +0000 | [diff] [blame] | 243 | /// enum attribute of the given kind. |
| 244 | bool hasFnAttribute(Attribute::AttrKind Kind) const { |
| 245 | return AvailableFunctionAttrs & ((uint64_t)1) << Kind; |
| 246 | } |
| 247 | |
Eugene Zelenko | f193400 | 2017-06-19 22:05:08 +0000 | [diff] [blame] | 248 | using iterator = const AttributeSet *; |
| 249 | |
Reid Kleckner | 90e7ab1 | 2017-05-23 17:01:48 +0000 | [diff] [blame] | 250 | iterator begin() const { return getTrailingObjects<AttributeSet>(); } |
| 251 | iterator end() const { return begin() + NumAttrSets; } |
Bill Wendling | 73bc452 | 2013-01-28 00:21:34 +0000 | [diff] [blame] | 252 | |
Reid Kleckner | a8ca301 | 2017-04-11 00:16:00 +0000 | [diff] [blame] | 253 | void Profile(FoldingSetNodeID &ID) const; |
Reid Kleckner | 90e7ab1 | 2017-05-23 17:01:48 +0000 | [diff] [blame] | 254 | static void Profile(FoldingSetNodeID &ID, ArrayRef<AttributeSet> Nodes); |
Bill Wendling | d05204a | 2013-01-27 23:41:29 +0000 | [diff] [blame] | 255 | |
Peter Collingbourne | 40bacac | 2013-08-02 22:34:30 +0000 | [diff] [blame] | 256 | void dump() const; |
Bill Wendling | 0976e00 | 2012-11-20 05:09:20 +0000 | [diff] [blame] | 257 | }; |
| 258 | |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 259 | } // end namespace llvm |
Bill Wendling | 2c79ecb | 2012-09-26 21:07:29 +0000 | [diff] [blame] | 260 | |
Eugene Zelenko | 553d8c8 | 2016-12-07 22:06:02 +0000 | [diff] [blame] | 261 | #endif // LLVM_LIB_IR_ATTRIBUTEIMPL_H |