Lines Matching refs:AttrKind
52 bool isUsefullToPreserve(Attribute::AttrKind Kind) { in isUsefullToPreserve()
69 switch (RK.AttrKind) { in canonicalizedKnowledge()
104 using MapKey = std::pair<Value *, Attribute::AttrKind>;
120 RK.WasOn, {RK.AttrKind}, AC, in tryToPreserveWithoutAddingAssume()
154 if (Arg->hasAttribute(RK.AttrKind) && in isKnowledgeWorthPreserving()
155 (!Attribute::doesAttrKindHaveArgument(RK.AttrKind) || in isKnowledgeWorthPreserving()
156 Arg->getAttribute(RK.AttrKind).getValueAsInt() >= RK.ArgValue)) in isKnowledgeWorthPreserving()
179 MapKey Key{RK.WasOn, RK.AttrKind}; in addKnowledge()
369 SmallDenseMap<std::pair<Value *, Attribute::AttrKind>, in dropRedundantKnowledge()
392 bool HasSameKindAttr = Arg->hasAttribute(RK.AttrKind); in dropRedundantKnowledge()
394 if (!Attribute::doesAttrKindHaveArgument(RK.AttrKind) || in dropRedundantKnowledge()
395 Arg->getAttribute(RK.AttrKind).getValueAsInt() >= in dropRedundantKnowledge()
404 Arg->removeAttr(RK.AttrKind); in dropRedundantKnowledge()
405 Arg->addAttr(Attribute::get(C, RK.AttrKind, RK.ArgValue)); in dropRedundantKnowledge()
411 auto &Lookup = Knowledge[{RK.WasOn, RK.AttrKind}]; in dropRedundantKnowledge()