Lines Matching full:attribute
22 "force-attribute", cl::Hidden,
24 "Add an attribute to a function. This can be a "
25 "pair of 'function-name:attribute-name', to apply an attribute to a "
27 "example -force-attribute=foo:noinline. Specifying only an attribute "
28 "will apply the attribute to every function in the module. This "
32 "force-remove-attribute", cl::Hidden,
33 cl::desc("Remove an attribute from a function. This can be a "
34 "pair of 'function-name:attribute-name' to remove an attribute "
36 "example -force-remove-attribute=foo:noinline. Specifying only an "
37 "attribute will remove the attribute from all functions in the "
57 return Attribute::None; in forceAttributes()
62 auto Kind = Attribute::getAttrKindFromName(AttributeText); in forceAttributes()
63 if (Kind == Attribute::None || !Attribute::canUseAsFnAttr(Kind)) { in forceAttributes()
65 << " unknown or not a function attribute!\n"); in forceAttributes()
72 if (Kind == Attribute::None || F.hasFnAttribute(Kind)) in forceAttributes()
79 if (Kind == Attribute::None || !F.hasFnAttribute(Kind)) in forceAttributes()
112 auto AttrKind = Attribute::getAttrKindFromName(SplitPair.second); in run()
113 if (AttrKind != Attribute::None && in run()
114 Attribute::canUseAsFnAttr(AttrKind)) { in run()
121 << " as an attribute name.\n"; in run()