Lines Matching refs:Attribute

54 bool isUsefullToPreserve(Attribute::AttrKind Kind) {  in isUsefullToPreserve()
56 case Attribute::NonNull: in isUsefullToPreserve()
57 case Attribute::NoUndef: in isUsefullToPreserve()
58 case Attribute::Alignment: in isUsefullToPreserve()
59 case Attribute::Dereferenceable: in isUsefullToPreserve()
60 case Attribute::DereferenceableOrNull: in isUsefullToPreserve()
61 case Attribute::Cold: in isUsefullToPreserve()
75 case Attribute::NonNull: in canonicalizedKnowledge()
78 case Attribute::Alignment: { in canonicalizedKnowledge()
87 case Attribute::Dereferenceable: in canonicalizedKnowledge()
88 case Attribute::DereferenceableOrNull: { in canonicalizedKnowledge()
106 using MapKey = std::pair<Value *, Attribute::AttrKind>;
156 (!Attribute::isIntAttrKind(RK.AttrKind) || in isKnowledgeWorthPreserving()
195 void addAttribute(Attribute Attr, Value *WasOn) { in addAttribute()
209 for (Attribute Attr : AttrList.getParamAttrs(Idx)) { in addCall()
210 bool IsPoisonAttr = Attr.hasAttribute(Attribute::NonNull) || in addCall()
211 Attr.hasAttribute(Attribute::Alignment); in addCall()
215 for (Attribute Attr : AttrList.getFnAttrs()) in addCall()
242 std::string(Attribute::getNameFromAttrKind(MapElem.first.second)), in build()
258 addKnowledge({Attribute::Dereferenceable, DerefSize, Pointer}); in addAccessedPtr()
261 addKnowledge({Attribute::NonNull, 0u, Pointer}); in addAccessedPtr()
264 addKnowledge({Attribute::Alignment, MA.valueOrOne().value(), Pointer}); in addAccessedPtr()
401 SmallDenseMap<std::pair<Value *, Attribute::AttrKind>, in dropRedundantKnowledge()
427 if (!Attribute::isIntAttrKind(RK.AttrKind) || in dropRedundantKnowledge()
438 Arg->addAttr(Attribute::get(C, RK.AttrKind, RK.ArgValue)); in dropRedundantKnowledge()