llvm.org GIT mirror llvm / 08c11d3
Rearrange some deckchairs. Moving the class before it's use. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173612 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
1 changed file(s) with 16 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
176176
177177 class AttrBuilder;
178178 class AttributeSetImpl;
179 struct AttributeWithIndex;
179
180 //===----------------------------------------------------------------------===//
181 /// \class
182 /// \brief This is just a pair of values to associate a set of attributes with
183 /// an index.
184 struct AttributeWithIndex {
185 Attribute Attrs; ///< The attributes that are set, or'd together.
186 unsigned Index; ///< Index of the parameter for which the attributes apply.
187
188 static AttributeWithIndex get(unsigned Idx, Attribute Attrs) {
189 AttributeWithIndex P;
190 P.Index = Idx;
191 P.Attrs = Attrs;
192 return P;
193 }
194 };
180195
181196 //===----------------------------------------------------------------------===//
182197 /// \class
340355 AttributeSet getSlotAttributes(unsigned Slot) const;
341356
342357 void dump() const;
343 };
344
345 //===----------------------------------------------------------------------===//
346 /// \class
347 /// \brief This is just a pair of values to associate a set of attributes with
348 /// an index.
349 struct AttributeWithIndex {
350 Attribute Attrs; ///< The attributes that are set, or'd together.
351 unsigned Index; ///< Index of the parameter for which the attributes apply.
352
353 static AttributeWithIndex get(unsigned Idx, Attribute Attrs) {
354 AttributeWithIndex P;
355 P.Index = Idx;
356 P.Attrs = Attrs;
357 return P;
358 }
359358 };
360359
361360 //===----------------------------------------------------------------------===//