19 } ARMAttributeTags[] = {
73 namespace ARMBuildAttrs {
79 for (
unsigned TI = 0, TE =
sizeof(ARMAttributeTags) /
sizeof(*ARMAttributeTags);
81 if (ARMAttributeTags[TI].Attr == Attr) {
82 auto TagName = ARMAttributeTags[TI].TagName;
83 return HasTagPrefix ? TagName : TagName.drop_front(4);
91 TE =
sizeof(ARMAttributeTags) /
sizeof(*ARMAttributeTags);
93 auto TagName = ARMAttributeTags[TI].TagName;
94 if (TagName.drop_front(HasTagPrefix ? 0 : 4) == Tag) {
95 return ARMAttributeTags[TI].Attr;
This class represents lattice values for constants.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
StringRef AttrTypeAsString(unsigned Attr, bool HasTagPrefix=true)
int AttrTypeFromString(StringRef Tag)
StringRef - Represent a constant reference to a string, i.e.