Lines Matching refs:Attr
484 for (Attribute Attr : SortedAttrs) in get() local
485 Attr.Profile(ID); in get()
582 Attribute Attr = *II; in Raw() local
585 if (Attr.isStringAttribute()) continue; in Raw()
587 Attribute::AttrKind Kind = Attr.getKindAsEnum(); in Raw()
693 Attribute Attr; in get() local
696 Attr = Attribute::getWithAlignment(C, B.getAlignment()); in get()
699 Attr = Attribute::getWithStackAlignment(C, B.getStackAlignment()); in get()
702 Attr = Attribute::getWithDereferenceableBytes( in get()
706 Attr = Attribute::getWithDereferenceableOrNullBytes( in get()
710 Attr = Attribute::get(C, Kind); in get()
712 Attrs.push_back(std::make_pair(Index, Attr)); in get()
762 Attribute::AttrKind Attr) const { in addAttribute()
763 if (hasAttribute(Index, Attr)) return *this; in addAttribute()
764 return addAttributes(C, Index, AttributeSet::get(C, Index, Attr)); in addAttribute()
861 Attribute::AttrKind Attr) const { in removeAttribute()
862 if (!hasAttribute(Index, Attr)) return *this; in removeAttribute()
863 return removeAttributes(C, Index, AttributeSet::get(C, Index, Attr)); in removeAttribute()
1011 bool AttributeSet::hasAttrSomewhere(Attribute::AttrKind Attr) const { in hasAttrSomewhere()
1017 if (II->hasAttribute(Attr)) in hasAttrSomewhere()
1165 AttrBuilder &AttrBuilder::addAttribute(Attribute Attr) { in addAttribute() argument
1166 if (Attr.isStringAttribute()) { in addAttribute()
1167 addAttribute(Attr.getKindAsString(), Attr.getValueAsString()); in addAttribute()
1171 Attribute::AttrKind Kind = Attr.getKindAsEnum(); in addAttribute()
1175 Alignment = Attr.getAlignment(); in addAttribute()
1177 StackAlignment = Attr.getStackAlignment(); in addAttribute()
1179 DerefBytes = Attr.getDereferenceableBytes(); in addAttribute()
1181 DerefOrNullBytes = Attr.getDereferenceableOrNullBytes(); in addAttribute()
1217 Attribute Attr = *I; in removeAttributes() local
1218 if (Attr.isEnumAttribute() || Attr.isIntAttribute()) { in removeAttributes()
1219 removeAttribute(Attr.getKindAsEnum()); in removeAttributes()
1221 assert(Attr.isStringAttribute() && "Invalid attribute type!"); in removeAttributes()
1222 removeAttribute(Attr.getKindAsString()); in removeAttributes()
1352 Attribute Attr = *I; in hasAttributes() local
1353 if (Attr.isEnumAttribute() || Attr.isIntAttribute()) { in hasAttributes()
1357 assert(Attr.isStringAttribute() && "Invalid attribute kind!"); in hasAttributes()
1358 return TargetDepAttrs.find(Attr.getKindAsString())!=TargetDepAttrs.end(); in hasAttributes()