Home | History | Annotate | Download | only in IR

Lines Matching defs:Attr

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