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