blob: b9ef2f317e2830c723c05c424e851fe0f5008615 [file] [log] [blame]
/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
|* *|
|* Attribute name matcher *|
|* *|
|* Automatically generated file, do not edit! *|
|* *|
\*===----------------------------------------------------------------------===*/
static ParsedAttr::Kind getAttrKind(StringRef Name, ParsedAttr::Syntax Syntax) {
if (ParsedAttr::AS_GNU == Syntax) {
switch (Name.size()) {
default: break;
case 3: // 3 strings to match.
switch (Name[0]) {
default: break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "ar", 2) != 0)
break;
return ParsedAttr::AT_MipsLongCall; // "far"
case 'h': // 1 string to match.
if (memcmp(Name.data()+1, "ot", 2) != 0)
break;
return ParsedAttr::AT_Hot; // "hot"
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "cs", 2) != 0)
break;
return ParsedAttr::AT_Pcs; // "pcs"
}
break;
case 4: // 7 strings to match.
switch (Name[0]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "old", 3) != 0)
break;
return ParsedAttr::AT_Cold; // "cold"
case 'h': // 1 string to match.
if (memcmp(Name.data()+1, "ost", 3) != 0)
break;
return ParsedAttr::AT_CUDAHost; // "host"
case 'm': // 1 string to match.
if (memcmp(Name.data()+1, "ode", 3) != 0)
break;
return ParsedAttr::AT_Mode; // "mode"
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "ear", 3) != 0)
break;
return ParsedAttr::AT_MipsShortCall; // "near"
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "ure", 3) != 0)
break;
return ParsedAttr::AT_Pure; // "pure"
case 'u': // 1 string to match.
if (memcmp(Name.data()+1, "sed", 3) != 0)
break;
return ParsedAttr::AT_Used; // "used"
case 'w': // 1 string to match.
if (memcmp(Name.data()+1, "eak", 3) != 0)
break;
return ParsedAttr::AT_Weak; // "weak"
}
break;
case 5: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "lias", 4) != 0)
break;
return ParsedAttr::AT_Alias; // "alias"
case 'c': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+2, "ecl", 3) != 0)
break;
return ParsedAttr::AT_CDecl; // "cdecl"
case 'o': // 1 string to match.
if (memcmp(Name.data()+2, "nst", 3) != 0)
break;
return ParsedAttr::AT_Const; // "const"
}
break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "func", 4) != 0)
break;
return ParsedAttr::AT_IFunc; // "ifunc"
case 'n': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+2, "ked", 3) != 0)
break;
return ParsedAttr::AT_Naked; // "naked"
case 'o': // 1 string to match.
if (memcmp(Name.data()+2, "svm", 3) != 0)
break;
return ParsedAttr::AT_OpenCLNoSVM; // "nosvm"
}
break;
}
break;
case 6: // 15 strings to match.
switch (Name[0]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+1, "locks", 5) != 0)
break;
return ParsedAttr::AT_Blocks; // "blocks"
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "ommon", 5) != 0)
break;
return ParsedAttr::AT_Common; // "common"
case 'd': // 1 string to match.
if (memcmp(Name.data()+1, "evice", 5) != 0)
break;
return ParsedAttr::AT_CUDADevice; // "device"
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "ormat", 5) != 0)
break;
return ParsedAttr::AT_Format; // "format"
case 'g': // 1 string to match.
if (memcmp(Name.data()+1, "lobal", 5) != 0)
break;
return ParsedAttr::AT_CUDAGlobal; // "global"
case 'k': // 1 string to match.
if (memcmp(Name.data()+1, "ernel", 5) != 0)
break;
return ParsedAttr::AT_RenderScriptKernel; // "kernel"
case 'm': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+2, "lloc", 4) != 0)
break;
return ParsedAttr::AT_Restrict; // "malloc"
case 'i': // 1 string to match.
if (memcmp(Name.data()+2, "ps16", 4) != 0)
break;
return ParsedAttr::AT_Mips16; // "mips16"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "_abi", 4) != 0)
break;
return ParsedAttr::AT_MSABI; // "ms_abi"
}
break;
case 'p': // 2 strings to match.
if (Name[1] != 'a')
break;
switch (Name[2]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+3, "ked", 3) != 0)
break;
return ParsedAttr::AT_Packed; // "packed"
case 's': // 1 string to match.
if (memcmp(Name.data()+3, "cal", 3) != 0)
break;
return ParsedAttr::AT_Pascal; // "pascal"
}
break;
case 's': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'h': // 1 string to match.
if (memcmp(Name.data()+2, "ared", 4) != 0)
break;
return ParsedAttr::AT_CUDAShared; // "shared"
case 'i': // 1 string to match.
if (memcmp(Name.data()+2, "gnal", 4) != 0)
break;
return ParsedAttr::AT_AVRSignal; // "signal"
}
break;
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "arget", 5) != 0)
break;
return ParsedAttr::AT_Target; // "target"
case 'u': // 1 string to match.
if (memcmp(Name.data()+1, "nused", 5) != 0)
break;
return ParsedAttr::AT_Unused; // "unused"
}
break;
case 7: // 18 strings to match.
switch (Name[0]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+1, "_const", 6) != 0)
break;
return ParsedAttr::AT_Const; // "__const"
case 'a': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+2, "i_tag", 5) != 0)
break;
return ParsedAttr::AT_AbiTag; // "abi_tag"
case 'l': // 1 string to match.
if (memcmp(Name.data()+2, "igned", 5) != 0)
break;
return ParsedAttr::AT_Aligned; // "aligned"
}
break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+1, "ounded", 6) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "bounded"
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "leanup", 6) != 0)
break;
return ParsedAttr::AT_Cleanup; // "cleanup"
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "latten", 6) != 0)
break;
return ParsedAttr::AT_Flatten; // "flatten"
case 'm': // 1 string to match.
if (memcmp(Name.data()+1, "insize", 6) != 0)
break;
return ParsedAttr::AT_MinSize; // "minsize"
case 'n': // 4 strings to match.
switch (Name[1]) {
default: break;
case 'o': // 3 strings to match.
switch (Name[2]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+3, "ebug", 4) != 0)
break;
return ParsedAttr::AT_NoDebug; // "nodebug"
case 'n': // 1 string to match.
if (memcmp(Name.data()+3, "null", 4) != 0)
break;
return ParsedAttr::AT_NonNull; // "nonnull"
case 't': // 1 string to match.
if (memcmp(Name.data()+3, "hrow", 4) != 0)
break;
return ParsedAttr::AT_NoThrow; // "nothrow"
}
break;
case 'v': // 1 string to match.
if (memcmp(Name.data()+2, "_weak", 5) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "nv_weak"
}
break;
case 'o': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+2, "jc_gc", 5) != 0)
break;
return ParsedAttr::AT_ObjCGC; // "objc_gc"
case 'p': // 1 string to match.
if (memcmp(Name.data()+2, "tnone", 5) != 0)
break;
return ParsedAttr::AT_OptimizeNone; // "optnone"
}
break;
case 'r': // 2 strings to match.
if (memcmp(Name.data()+1, "eg", 2) != 0)
break;
switch (Name[3]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+4, "all", 3) != 0)
break;
return ParsedAttr::AT_RegCall; // "regcall"
case 'p': // 1 string to match.
if (memcmp(Name.data()+4, "arm", 3) != 0)
break;
return ParsedAttr::AT_Regparm; // "regparm"
}
break;
case 's': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "ction", 5) != 0)
break;
return ParsedAttr::AT_Section; // "section"
case 't': // 1 string to match.
if (memcmp(Name.data()+2, "dcall", 5) != 0)
break;
return ParsedAttr::AT_StdCall; // "stdcall"
}
break;
case 'w': // 1 string to match.
if (memcmp(Name.data()+1, "eakref", 6) != 0)
break;
return ParsedAttr::AT_WeakRef; // "weakref"
}
break;
case 8: // 15 strings to match.
switch (Name[0]) {
default: break;
case 'N': // 1 string to match.
if (memcmp(Name.data()+1, "SObject", 7) != 0)
break;
return ParsedAttr::AT_ObjCNSObject; // "NSObject"
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "nnotate", 7) != 0)
break;
return ParsedAttr::AT_Annotate; // "annotate"
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "onstant", 7) != 0)
break;
return ParsedAttr::AT_CUDAConstant; // "constant"
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "astcall", 7) != 0)
break;
return ParsedAttr::AT_FastCall; // "fastcall"
case 'i': // 2 strings to match.
if (Name[1] != 'b')
break;
switch (Name[2]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+3, "ction", 5) != 0)
break;
return ParsedAttr::AT_IBAction; // "ibaction"
case 'o': // 1 string to match.
if (memcmp(Name.data()+3, "utlet", 5) != 0)
break;
return ParsedAttr::AT_IBOutlet; // "iboutlet"
}
break;
case 'l': // 1 string to match.
if (memcmp(Name.data()+1, "ockable", 7) != 0)
break;
return ParsedAttr::AT_Lockable; // "lockable"
case 'n': // 5 strings to match.
if (Name[1] != 'o')
break;
switch (Name[2]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+3, "ommon", 5) != 0)
break;
return ParsedAttr::AT_NoCommon; // "nocommon"
case 'e': // 1 string to match.
if (memcmp(Name.data()+3, "scape", 5) != 0)
break;
return ParsedAttr::AT_NoEscape; // "noescape"
case 'i': // 1 string to match.
if (memcmp(Name.data()+3, "nline", 5) != 0)
break;
return ParsedAttr::AT_NoInline; // "noinline"
case 'm': // 1 string to match.
if (memcmp(Name.data()+3, "ips16", 5) != 0)
break;
return ParsedAttr::AT_NoMips16; // "nomips16"
case 'r': // 1 string to match.
if (memcmp(Name.data()+3, "eturn", 5) != 0)
break;
return ParsedAttr::AT_NoReturn; // "noreturn"
}
break;
case 's': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "ntinel", 6) != 0)
break;
return ParsedAttr::AT_Sentinel; // "sentinel"
case 'y': // 1 string to match.
if (memcmp(Name.data()+2, "sv_abi", 6) != 0)
break;
return ParsedAttr::AT_SysVABI; // "sysv_abi"
}
break;
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "hiscall", 7) != 0)
break;
return ParsedAttr::AT_ThisCall; // "thiscall"
}
break;
case 9: // 13 strings to match.
switch (Name[0]) {
default: break;
case 'd': // 2 strings to match.
if (memcmp(Name.data()+1, "ll", 2) != 0)
break;
switch (Name[3]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+4, "xport", 5) != 0)
break;
return ParsedAttr::AT_DLLExport; // "dllexport"
case 'i': // 1 string to match.
if (memcmp(Name.data()+4, "mport", 5) != 0)
break;
return ParsedAttr::AT_DLLImport; // "dllimport"
}
break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "nable_if", 8) != 0)
break;
return ParsedAttr::AT_EnableIf; // "enable_if"
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "lag_enum", 8) != 0)
break;
return ParsedAttr::AT_FlagEnum; // "flag_enum"
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "nterrupt", 8) != 0)
break;
return ParsedAttr::AT_Interrupt; // "interrupt"
case 'l': // 1 string to match.
if (memcmp(Name.data()+1, "ong_call", 8) != 0)
break;
return ParsedAttr::AT_MipsLongCall; // "long_call"
case 'm': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+2, "y_alias", 7) != 0)
break;
return ParsedAttr::AT_MayAlias; // "may_alias"
case 'i': // 1 string to match.
if (memcmp(Name.data()+2, "cromips", 7) != 0)
break;
return ParsedAttr::AT_MicroMips; // "micromips"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "_struct", 7) != 0)
break;
return ParsedAttr::AT_MSStruct; // "ms_struct"
}
break;
case 's': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "lectany", 7) != 0)
break;
return ParsedAttr::AT_SelectAny; // "selectany"
case 'w': // 1 string to match.
if (memcmp(Name.data()+2, "iftcall", 7) != 0)
break;
return ParsedAttr::AT_SwiftCall; // "swiftcall"
}
break;
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "ls_model", 8) != 0)
break;
return ParsedAttr::AT_TLSModel; // "tls_model"
case 'v': // 1 string to match.
if (memcmp(Name.data()+1, "ecreturn", 8) != 0)
break;
return ParsedAttr::AT_VecReturn; // "vecreturn"
}
break;
case 10: // 15 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'l': // 1 string to match.
if (memcmp(Name.data()+2, "loc_size", 8) != 0)
break;
return ParsedAttr::AT_AllocSize; // "alloc_size"
case 'r': // 1 string to match.
if (memcmp(Name.data()+2, "tificial", 8) != 0)
break;
return ParsedAttr::AT_Artificial; // "artificial"
}
break;
case 'c': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+2, "pability", 8) != 0)
break;
return ParsedAttr::AT_Capability; // "capability"
case 'o': // 2 strings to match.
if (Name[2] != 'n')
break;
switch (Name[3]) {
default: break;
case 's': // 1 string to match.
if (memcmp(Name.data()+4, "umable", 6) != 0)
break;
return ParsedAttr::AT_Consumable; // "consumable"
case 'v': // 1 string to match.
if (memcmp(Name.data()+4, "ergent", 6) != 0)
break;
return ParsedAttr::AT_Convergent; // "convergent"
}
break;
}
break;
case 'd': // 2 strings to match.
if (Name[1] != 'e')
break;
switch (Name[2]) {
default: break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+3, "recated", 7) != 0)
break;
return ParsedAttr::AT_Deprecated; // "deprecated"
case 's': // 1 string to match.
if (memcmp(Name.data()+3, "tructor", 7) != 0)
break;
return ParsedAttr::AT_Destructor; // "destructor"
}
break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "ormat_arg", 9) != 0)
break;
return ParsedAttr::AT_FormatArg; // "format_arg"
case 'g': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'n': // 1 string to match.
if (memcmp(Name.data()+2, "u_inline", 8) != 0)
break;
return ParsedAttr::AT_GNUInline; // "gnu_inline"
case 'u': // 1 string to match.
if (memcmp(Name.data()+2, "arded_by", 8) != 0)
break;
return ParsedAttr::AT_GuardedBy; // "guarded_by"
}
break;
case 'n': // 2 strings to match.
if (Name[1] != 'o')
break;
switch (Name[2]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+3, "destroy", 7) != 0)
break;
return ParsedAttr::AT_NoDestroy; // "no_destroy"
case 'c': // 1 string to match.
if (memcmp(Name.data()+3, "f_check", 7) != 0)
break;
return ParsedAttr::AT_AnyX86NoCfCheck; // "nocf_check"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "hort_call", 9) != 0)
break;
return ParsedAttr::AT_MipsShortCall; // "short_call"
case 'v': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "ctorcall", 8) != 0)
break;
return ParsedAttr::AT_VectorCall; // "vectorcall"
case 'i': // 1 string to match.
if (memcmp(Name.data()+2, "sibility", 8) != 0)
break;
return ParsedAttr::AT_Visibility; // "visibility"
}
break;
}
break;
case 11: // 16 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 2 strings to match.
if (Name[1] != 'l')
break;
switch (Name[2]) {
default: break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+3, "gn_value", 8) != 0)
break;
return ParsedAttr::AT_AlignValue; // "align_value"
case 'l': // 1 string to match.
if (memcmp(Name.data()+3, "oc_align", 8) != 0)
break;
return ParsedAttr::AT_AllocAlign; // "alloc_align"
}
break;
case 'c': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+2, "_consumed", 9) != 0)
break;
return ParsedAttr::AT_CFConsumed; // "cf_consumed"
case 'o': // 1 string to match.
if (memcmp(Name.data()+2, "nstructor", 9) != 0)
break;
return ParsedAttr::AT_Constructor; // "constructor"
}
break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+1, "iagnose_if", 10) != 0)
break;
return ParsedAttr::AT_DiagnoseIf; // "diagnose_if"
case 'g': // 1 string to match.
if (memcmp(Name.data()+1, "uarded_var", 10) != 0)
break;
return ParsedAttr::AT_GuardedVar; // "guarded_var"
case 'n': // 4 strings to match.
switch (Name[1]) {
default: break;
case 'o': // 3 strings to match.
switch (Name[2]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+3, "sanitize", 8) != 0)
break;
return ParsedAttr::AT_NoSanitize; // "no_sanitize"
case 'd': // 1 string to match.
if (memcmp(Name.data()+3, "uplicate", 8) != 0)
break;
return ParsedAttr::AT_NoDuplicate; // "noduplicate"
case 'm': // 1 string to match.
if (memcmp(Name.data()+3, "icromips", 8) != 0)
break;
return ParsedAttr::AT_NoMicroMips; // "nomicromips"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "_consumed", 9) != 0)
break;
return ParsedAttr::AT_NSConsumed; // "ns_consumed"
}
break;
case 'o': // 1 string to match.
if (memcmp(Name.data()+1, "bjc_bridge", 10) != 0)
break;
return ParsedAttr::AT_ObjCBridge; // "objc_bridge"
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "rivial_abi", 10) != 0)
break;
return ParsedAttr::AT_TrivialABI; // "trivial_abi"
case 'u': // 1 string to match.
if (memcmp(Name.data()+1, "navailable", 10) != 0)
break;
return ParsedAttr::AT_Unavailable; // "unavailable"
case 'v': // 1 string to match.
if (memcmp(Name.data()+1, "ector_size", 10) != 0)
break;
return ParsedAttr::AT_VectorSize; // "vector_size"
case 'w': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+2, "rn_unused", 9) != 0)
break;
return ParsedAttr::AT_WarnUnused; // "warn_unused"
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "ak_import", 9) != 0)
break;
return ParsedAttr::AT_WeakImport; // "weak_import"
}
break;
}
break;
case 12: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "vailability", 11) != 0)
break;
return ParsedAttr::AT_Availability; // "availability"
case 'c': // 2 strings to match.
if (memcmp(Name.data()+1, "pu_", 3) != 0)
break;
switch (Name[4]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+5, "ispatch", 7) != 0)
break;
return ParsedAttr::AT_CPUDispatch; // "cpu_dispatch"
case 's': // 1 string to match.
if (memcmp(Name.data()+5, "pecific", 7) != 0)
break;
return ParsedAttr::AT_CPUSpecific; // "cpu_specific"
}
break;
case 'o': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+2, "jc_boxable", 10) != 0)
break;
return ParsedAttr::AT_ObjCBoxable; // "objc_boxable"
case 'v': // 1 string to match.
if (memcmp(Name.data()+2, "erloadable", 10) != 0)
break;
return ParsedAttr::AT_Overloadable; // "overloadable"
}
break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "reserve_all", 11) != 0)
break;
return ParsedAttr::AT_PreserveAll; // "preserve_all"
}
break;
case 13: // 15 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+2, "dress_space", 11) != 0)
break;
return ParsedAttr::AT_AddressSpace; // "address_space"
case 'l': // 1 string to match.
if (memcmp(Name.data()+2, "ways_inline", 11) != 0)
break;
return ParsedAttr::AT_AlwaysInline; // "always_inline"
}
break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "allable_when", 12) != 0)
break;
return ParsedAttr::AT_CallableWhen; // "callable_when"
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "nit_priority", 12) != 0)
break;
return ParsedAttr::AT_InitPriority; // "init_priority"
case 'l': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+2, "unch_bounds", 11) != 0)
break;
return ParsedAttr::AT_CUDALaunchBounds; // "launch_bounds"
case 'i': // 1 string to match.
if (memcmp(Name.data()+2, "fetimebound", 11) != 0)
break;
return ParsedAttr::AT_LifetimeBound; // "lifetimebound"
case 'o': // 1 string to match.
if (memcmp(Name.data()+2, "ck_returned", 11) != 0)
break;
return ParsedAttr::AT_LockReturned; // "lock_returned"
}
break;
case 'p': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'r': // 1 string to match.
if (memcmp(Name.data()+2, "eserve_most", 11) != 0)
break;
return ParsedAttr::AT_PreserveMost; // "preserve_most"
case 't': // 1 string to match.
if (memcmp(Name.data()+2, "_guarded_by", 11) != 0)
break;
return ParsedAttr::AT_PtGuardedBy; // "pt_guarded_by"
}
break;
case 'r': // 2 strings to match.
if (Name[1] != 'e')
break;
switch (Name[2]) {
default: break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+3, "nitializes", 10) != 0)
break;
return ParsedAttr::AT_Reinitializes; // "reinitializes"
case 't': // 1 string to match.
if (memcmp(Name.data()+3, "urns_twice", 10) != 0)
break;
return ParsedAttr::AT_ReturnsTwice; // "returns_twice"
}
break;
case 's': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "t_typestate", 11) != 0)
break;
return ParsedAttr::AT_SetTypestate; // "set_typestate"
case 'w': // 1 string to match.
if (memcmp(Name.data()+2, "ift_context", 11) != 0)
break;
return ParsedAttr::AT_SwiftContext; // "swift_context"
}
break;
case 'v': // 1 string to match.
if (memcmp(Name.data()+1, "ec_type_hint", 12) != 0)
break;
return ParsedAttr::AT_VecTypeHint; // "vec_type_hint"
case 'x': // 1 string to match.
if (memcmp(Name.data()+1, "ray_log_args", 12) != 0)
break;
return ParsedAttr::AT_XRayLogArgs; // "xray_log_args"
}
break;
case 14: // 12 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+2, "quired_after", 12) != 0)
break;
return ParsedAttr::AT_AcquiredAfter; // "acquired_after"
case 'l': // 1 string to match.
if (memcmp(Name.data()+2, "ways_destroy", 12) != 0)
break;
return ParsedAttr::AT_AlwaysDestroy; // "always_destroy"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "sume_aligned", 12) != 0)
break;
return ParsedAttr::AT_AssumeAligned; // "assume_aligned"
}
break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "udart_builtin", 13) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "cudart_builtin"
case 'd': // 1 string to match.
if (memcmp(Name.data()+1, "evice_builtin", 13) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "device_builtin"
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "ntel_ocl_bicc", 13) != 0)
break;
return ParsedAttr::AT_IntelOclBicc; // "intel_ocl_bicc"
case 'l': // 1 string to match.
if (memcmp(Name.data()+1, "ocks_excluded", 13) != 0)
break;
return ParsedAttr::AT_LocksExcluded; // "locks_excluded"
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "o_split_stack", 13) != 0)
break;
return ParsedAttr::AT_NoSplitStack; // "no_split_stack"
case 'o': // 2 strings to match.
if (memcmp(Name.data()+1, "bjc_", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+6, "xception", 8) != 0)
break;
return ParsedAttr::AT_ObjCException; // "objc_exception"
case 'o': // 1 string to match.
if (memcmp(Name.data()+6, "wnership", 8) != 0)
break;
return ParsedAttr::AT_ObjCOwnership; // "objc_ownership"
}
break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "t_guarded_var", 13) != 0)
break;
return ParsedAttr::AT_PtGuardedVar; // "pt_guarded_var"
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "est_typestate", 13) != 0)
break;
return ParsedAttr::AT_TestTypestate; // "test_typestate"
}
break;
case 15: // 13 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+2, "quired_before", 13) != 0)
break;
return ParsedAttr::AT_AcquiredBefore; // "acquired_before"
case 'm': // 2 strings to match.
if (memcmp(Name.data()+2, "dgpu_num_", 9) != 0)
break;
switch (Name[11]) {
default: break;
case 's': // 1 string to match.
if (memcmp(Name.data()+12, "gpr", 3) != 0)
break;
return ParsedAttr::AT_AMDGPUNumSGPR; // "amdgpu_num_sgpr"
case 'v': // 1 string to match.
if (memcmp(Name.data()+12, "gpr", 3) != 0)
break;
return ParsedAttr::AT_AMDGPUNumVGPR; // "amdgpu_num_vgpr"
}
break;
}
break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "xt_vector_type", 14) != 0)
break;
return ParsedAttr::AT_ExtVectorType; // "ext_vector_type"
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "ot_tail_called", 14) != 0)
break;
return ParsedAttr::AT_NotTailCalled; // "not_tail_called"
case 'o': // 3 strings to match.
switch (Name[1]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+2, "jc_root_class", 13) != 0)
break;
return ParsedAttr::AT_ObjCRootClass; // "objc_root_class"
case 'w': // 2 strings to match.
if (memcmp(Name.data()+2, "nership_", 8) != 0)
break;
switch (Name[10]) {
default: break;
case 'h': // 1 string to match.
if (memcmp(Name.data()+11, "olds", 4) != 0)
break;
return ParsedAttr::AT_Ownership; // "ownership_holds"
case 't': // 1 string to match.
if (memcmp(Name.data()+11, "akes", 4) != 0)
break;
return ParsedAttr::AT_Ownership; // "ownership_takes"
}
break;
}
break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "aram_typestate", 14) != 0)
break;
return ParsedAttr::AT_ParamTypestate; // "param_typestate"
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "eturns_nonnull", 14) != 0)
break;
return ParsedAttr::AT_ReturnsNonNull; // "returns_nonnull"
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "coped_lockable", 14) != 0)
break;
return ParsedAttr::AT_ScopedLockable; // "scoped_lockable"
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "ype_visibility", 14) != 0)
break;
return ParsedAttr::AT_TypeVisibility; // "type_visibility"
case 'u': // 1 string to match.
if (memcmp(Name.data()+1, "nlock_function", 14) != 0)
break;
return ParsedAttr::AT_ReleaseCapability; // "unlock_function"
}
break;
case 16: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "nternal_linkage", 15) != 0)
break;
return ParsedAttr::AT_InternalLinkage; // "internal_linkage"
case 'm': // 1 string to match.
if (memcmp(Name.data()+1, "in_vector_width", 15) != 0)
break;
return ParsedAttr::AT_MinVectorWidth; // "min_vector_width"
case 'n': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+2, "on_vector_type", 14) != 0)
break;
return ParsedAttr::AT_NeonVectorType; // "neon_vector_type"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "_consumes_self", 14) != 0)
break;
return ParsedAttr::AT_NSConsumesSelf; // "ns_consumes_self"
}
break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "ass_object_size", 15) != 0)
break;
return ParsedAttr::AT_PassObjectSize; // "pass_object_size"
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "eturn_typestate", 15) != 0)
break;
return ParsedAttr::AT_ReturnTypestate; // "return_typestate"
}
break;
case 17: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'n': // 1 string to match.
if (memcmp(Name.data()+2, "alyzer_noreturn", 15) != 0)
break;
return ParsedAttr::AT_AnalyzerNoReturn; // "analyzer_noreturn"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "sert_capability", 15) != 0)
break;
return ParsedAttr::AT_AssertCapability; // "assert_capability"
}
break;
case 'o': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+2, "jc_runtime_name", 15) != 0)
break;
return ParsedAttr::AT_ObjCRuntimeName; // "objc_runtime_name"
case 'w': // 1 string to match.
if (memcmp(Name.data()+2, "nership_returns", 15) != 0)
break;
return ParsedAttr::AT_Ownership; // "ownership_returns"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "hared_capability", 16) != 0)
break;
return ParsedAttr::AT_Capability; // "shared_capability"
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "ransparent_union", 16) != 0)
break;
return ParsedAttr::AT_TransparentUnion; // "transparent_union"
}
break;
case 18: // 14 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+2, "quire_capability", 16) != 0)
break;
return ParsedAttr::AT_AcquireCapability; // "acquire_capability"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "sert_shared_lock", 16) != 0)
break;
return ParsedAttr::AT_AssertSharedLock; // "assert_shared_lock"
}
break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "arries_dependency", 17) != 0)
break;
return ParsedAttr::AT_CarriesDependency; // "carries_dependency"
case 'd': // 1 string to match.
if (memcmp(Name.data()+1, "isable_tail_calls", 17) != 0)
break;
return ParsedAttr::AT_DisableTailCalls; // "disable_tail_calls"
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "num_extensibility", 17) != 0)
break;
return ParsedAttr::AT_EnumExtensibility; // "enum_extensibility"
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "boutletcollection", 17) != 0)
break;
return ParsedAttr::AT_IBOutletCollection; // "iboutletcollection"
case 'n': // 3 strings to match.
if (memcmp(Name.data()+1, "o_s", 3) != 0)
break;
switch (Name[4]) {
default: break;
case 'a': // 2 strings to match.
if (memcmp(Name.data()+5, "nitize_", 7) != 0)
break;
switch (Name[12]) {
default: break;
case 'm': // 1 string to match.
if (memcmp(Name.data()+13, "emory", 5) != 0)
break;
return ParsedAttr::AT_NoSanitizeSpecific; // "no_sanitize_memory"
case 't': // 1 string to match.
if (memcmp(Name.data()+13, "hread", 5) != 0)
break;
return ParsedAttr::AT_NoSanitizeSpecific; // "no_sanitize_thread"
}
break;
case 't': // 1 string to match.
if (memcmp(Name.data()+5, "ack_protector", 13) != 0)
break;
return ParsedAttr::AT_NoStackProtector; // "no_stack_protector"
}
break;
case 'o': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+2, "jc_method_family", 16) != 0)
break;
return ParsedAttr::AT_ObjCMethodFamily; // "objc_method_family"
case 'p': // 1 string to match.
if (memcmp(Name.data()+2, "encl_unroll_hint", 16) != 0)
break;
return ParsedAttr::AT_OpenCLUnrollHint; // "opencl_unroll_hint"
}
break;
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "elease_capability", 17) != 0)
break;
return ParsedAttr::AT_ReleaseCapability; // "release_capability"
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "wift_error_result", 17) != 0)
break;
return ParsedAttr::AT_SwiftErrorResult; // "swift_error_result"
case 'w': // 1 string to match.
if (memcmp(Name.data()+1, "arn_unused_result", 17) != 0)
break;
return ParsedAttr::AT_WarnUnusedResult; // "warn_unused_result"
}
break;
case 19: // 10 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "mdgpu_waves_per_eu", 18) != 0)
break;
return ParsedAttr::AT_AMDGPUWavesPerEU; // "amdgpu_waves_per_eu"
case 'c': // 3 strings to match.
if (memcmp(Name.data()+1, "f_", 2) != 0)
break;
switch (Name[3]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+4, "udited_transfer", 15) != 0)
break;
return ParsedAttr::AT_CFAuditedTransfer; // "cf_audited_transfer"
case 'r': // 1 string to match.
if (memcmp(Name.data()+4, "eturns_retained", 15) != 0)
break;
return ParsedAttr::AT_CFReturnsRetained; // "cf_returns_retained"
case 'u': // 1 string to match.
if (memcmp(Name.data()+4, "nknown_transfer", 15) != 0)
break;
return ParsedAttr::AT_CFUnknownTransfer; // "cf_unknown_transfer"
}
break;
case 'n': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'o': // 1 string to match.
if (memcmp(Name.data()+2, "_sanitize_address", 17) != 0)
break;
return ParsedAttr::AT_NoSanitizeSpecific; // "no_sanitize_address"
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "_returns_retained", 17) != 0)
break;
return ParsedAttr::AT_NSReturnsRetained; // "ns_returns_retained"
}
break;
case 'o': // 3 strings to match.
if (memcmp(Name.data()+1, "bjc_", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'b': // 2 strings to match.
if (memcmp(Name.data()+6, "ridge_", 6) != 0)
break;
switch (Name[12]) {
default: break;
case 'm': // 1 string to match.
if (memcmp(Name.data()+13, "utable", 6) != 0)
break;
return ParsedAttr::AT_ObjCBridgeMutable; // "objc_bridge_mutable"
case 'r': // 1 string to match.
if (memcmp(Name.data()+13, "elated", 6) != 0)
break;
return ParsedAttr::AT_ObjCBridgeRelated; // "objc_bridge_related"
}
break;
case 'r': // 1 string to match.
if (memcmp(Name.data()+6, "equires_super", 13) != 0)
break;
return ParsedAttr::AT_ObjCRequiresSuper; // "objc_requires_super"
}
break;
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "equires_capability", 18) != 0)
break;
return ParsedAttr::AT_RequiresCapability; // "requires_capability"
}
break;
case 20: // 5 strings to match.
switch (Name[0]) {
default: break;
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "eon_polyvector_type", 19) != 0)
break;
return ParsedAttr::AT_NeonPolyVectorType; // "neon_polyvector_type"
case 'o': // 1 string to match.
if (memcmp(Name.data()+1, "bjc_runtime_visible", 19) != 0)
break;
return ParsedAttr::AT_ObjCRuntimeVisible; // "objc_runtime_visible"
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "eqd_work_group_size", 19) != 0)
break;
return ParsedAttr::AT_ReqdWorkGroupSize; // "reqd_work_group_size"
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "hared_lock_function", 19) != 0)
break;
return ParsedAttr::AT_AcquireCapability; // "shared_lock_function"
case 'w': // 1 string to match.
if (memcmp(Name.data()+1, "ork_group_size_hint", 19) != 0)
break;
return ParsedAttr::AT_WorkGroupSizeHint; // "work_group_size_hint"
}
break;
case 21: // 8 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "ssert_exclusive_lock", 20) != 0)
break;
return ParsedAttr::AT_AssertExclusiveLock; // "assert_exclusive_lock"
case 'l': // 1 string to match.
if (memcmp(Name.data()+1, "to_visibility_public", 20) != 0)
break;
return ParsedAttr::AT_LTOVisibilityPublic; // "lto_visibility_public"
case 'o': // 1 string to match.
if (memcmp(Name.data()+1, "bjc_precise_lifetime", 20) != 0)
break;
return ParsedAttr::AT_ObjCPreciseLifetime; // "objc_precise_lifetime"
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "ointer_with_type_tag", 20) != 0)
break;
return ParsedAttr::AT_ArgumentWithTypeTag; // "pointer_with_type_tag"
case 's': // 2 strings to match.
switch (Name[1]) {
default: break;
case 'h': // 1 string to match.
if (memcmp(Name.data()+2, "ared_locks_required", 19) != 0)
break;
return ParsedAttr::AT_RequiresCapability; // "shared_locks_required"
case 'w': // 1 string to match.
if (memcmp(Name.data()+2, "ift_indirect_result", 19) != 0)
break;
return ParsedAttr::AT_SwiftIndirectResult; // "swift_indirect_result"
}
break;
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "ype_tag_for_datatype", 20) != 0)
break;
return ParsedAttr::AT_TypeTagForDatatype; // "type_tag_for_datatype"
case 'x': // 1 string to match.
if (memcmp(Name.data()+1, "ray_never_instrument", 20) != 0)
break;
return ParsedAttr::AT_XRayInstrument; // "xray_never_instrument"
}
break;
case 22: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "rgument_with_type_tag", 21) != 0)
break;
return ParsedAttr::AT_ArgumentWithTypeTag; // "argument_with_type_tag"
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "xternal_source_symbol", 21) != 0)
break;
return ParsedAttr::AT_ExternalSourceSymbol; // "external_source_symbol"
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "o_instrument_function", 21) != 0)
break;
return ParsedAttr::AT_NoInstrumentFunction; // "no_instrument_function"
case 'o': // 1 string to match.
if (memcmp(Name.data()+1, "bjc_independent_class", 21) != 0)
break;
return ParsedAttr::AT_ObjCIndependentClass; // "objc_independent_class"
case 't': // 1 string to match.
if (memcmp(Name.data()+1, "ry_acquire_capability", 21) != 0)
break;
return ParsedAttr::AT_TryAcquireCapability; // "try_acquire_capability"
case 'x': // 1 string to match.
if (memcmp(Name.data()+1, "ray_always_instrument", 21) != 0)
break;
return ParsedAttr::AT_XRayInstrument; // "xray_always_instrument"
}
break;
case 23: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "f_returns_not_retained", 22) != 0)
break;
return ParsedAttr::AT_CFReturnsNotRetained; // "cf_returns_not_retained"
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "xclusive_lock_function", 22) != 0)
break;
return ParsedAttr::AT_AcquireCapability; // "exclusive_lock_function"
case 'f': // 1 string to match.
if (memcmp(Name.data()+1, "orce_align_arg_pointer", 22) != 0)
break;
return ParsedAttr::AT_X86ForceAlignArgPointer; // "force_align_arg_pointer"
case 'n': // 2 strings to match.
if (memcmp(Name.data()+1, "s_returns_", 10) != 0)
break;
switch (Name[11]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+12, "utoreleased", 11) != 0)
break;
return ParsedAttr::AT_NSReturnsAutoreleased; // "ns_returns_autoreleased"
case 'n': // 1 string to match.
if (memcmp(Name.data()+12, "ot_retained", 11) != 0)
break;
return ParsedAttr::AT_NSReturnsNotRetained; // "ns_returns_not_retained"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "hared_trylock_function", 22) != 0)
break;
return ParsedAttr::AT_SharedTrylockFunction; // "shared_trylock_function"
}
break;
case 24: // 2 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "ssert_shared_capability", 23) != 0)
break;
return ParsedAttr::AT_AssertCapability; // "assert_shared_capability"
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "xclusive_locks_required", 23) != 0)
break;
return ParsedAttr::AT_RequiresCapability; // "exclusive_locks_required"
}
break;
case 25: // 5 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "cquire_shared_capability", 24) != 0)
break;
return ParsedAttr::AT_AcquireCapability; // "acquire_shared_capability"
case 'i': // 1 string to match.
if (memcmp(Name.data()+1, "ntel_reqd_sub_group_size", 24) != 0)
break;
return ParsedAttr::AT_OpenCLIntelReqdSubGroupSize; // "intel_reqd_sub_group_size"
case 'n': // 2 strings to match.
if (memcmp(Name.data()+1, "o_", 2) != 0)
break;
switch (Name[3]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+4, "aller_saved_registers", 21) != 0)
break;
return ParsedAttr::AT_AnyX86NoCallerSavedRegisters; // "no_caller_saved_registers"
case 't': // 1 string to match.
if (memcmp(Name.data()+4, "hread_safety_analysis", 21) != 0)
break;
return ParsedAttr::AT_NoThreadSafetyAnalysis; // "no_thread_safety_analysis"
}
break;
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "elease_shared_capability", 24) != 0)
break;
return ParsedAttr::AT_ReleaseCapability; // "release_shared_capability"
}
break;
case 26: // 6 strings to match.
switch (Name[0]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "onsumable_auto_cast_state", 25) != 0)
break;
return ParsedAttr::AT_ConsumableAutoCast; // "consumable_auto_cast_state"
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "xclusive_trylock_function", 25) != 0)
break;
return ParsedAttr::AT_ExclusiveTrylockFunction; // "exclusive_trylock_function"
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "o_address_safety_analysis", 25) != 0)
break;
return ParsedAttr::AT_NoSanitizeSpecific; // "no_address_safety_analysis"
case 'o': // 1 string to match.
if (memcmp(Name.data()+1, "bjc_returns_inner_pointer", 25) != 0)
break;
return ParsedAttr::AT_ObjCReturnsInnerPointer; // "objc_returns_inner_pointer"
case 'r': // 2 strings to match.
if (Name[1] != 'e')
break;
switch (Name[2]) {
default: break;
case 'l': // 1 string to match.
if (memcmp(Name.data()+3, "ease_generic_capability", 23) != 0)
break;
return ParsedAttr::AT_ReleaseCapability; // "release_generic_capability"
case 'q': // 1 string to match.
if (memcmp(Name.data()+3, "uires_shared_capability", 23) != 0)
break;
return ParsedAttr::AT_RequiresCapability; // "requires_shared_capability"
}
break;
}
break;
case 27: // 5 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "mdgpu_flat_work_group_size", 26) != 0)
break;
return ParsedAttr::AT_AMDGPUFlatWorkGroupSize; // "amdgpu_flat_work_group_size"
case 'd': // 2 strings to match.
if (memcmp(Name.data()+1, "evice_builtin_", 14) != 0)
break;
switch (Name[15]) {
default: break;
case 's': // 1 string to match.
if (memcmp(Name.data()+16, "urface_type", 11) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "device_builtin_surface_type"
case 't': // 1 string to match.
if (memcmp(Name.data()+16, "exture_type", 11) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "device_builtin_texture_type"
}
break;
case 'o': // 2 strings to match.
if (memcmp(Name.data()+1, "bjc_", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+6, "esignated_initializer", 21) != 0)
break;
return ParsedAttr::AT_ObjCDesignatedInitializer; // "objc_designated_initializer"
case 's': // 1 string to match.
if (memcmp(Name.data()+6, "ubclassing_restricted", 21) != 0)
break;
return ParsedAttr::AT_ObjCSubclassingRestricted; // "objc_subclassing_restricted"
}
break;
}
break;
case 28: // 1 string to match.
if (memcmp(Name.data()+0, "consumable_set_state_on_read", 28) != 0)
break;
return ParsedAttr::AT_ConsumableSetOnRead; // "consumable_set_state_on_read"
case 29: // 1 string to match.
if (memcmp(Name.data()+0, "try_acquire_shared_capability", 29) != 0)
break;
return ParsedAttr::AT_TryAcquireCapability; // "try_acquire_shared_capability"
case 31: // 1 string to match.
if (memcmp(Name.data()+0, "require_constant_initialization", 31) != 0)
break;
return ParsedAttr::AT_RequireConstantInit; // "require_constant_initialization"
case 34: // 1 string to match.
if (memcmp(Name.data()+0, "objc_requires_property_definitions", 34) != 0)
break;
return ParsedAttr::AT_ObjCRequiresPropertyDefs; // "objc_requires_property_definitions"
case 35: // 2 strings to match.
switch (Name[0]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+1, "xclude_from_explicit_instantiation", 34) != 0)
break;
return ParsedAttr::AT_ExcludeFromExplicitInstantiation; // "exclude_from_explicit_instantiation"
case 'o': // 1 string to match.
if (memcmp(Name.data()+1, "bjc_arc_weak_reference_unavailable", 34) != 0)
break;
return ParsedAttr::AT_ArcWeakrefUnavailable; // "objc_arc_weak_reference_unavailable"
}
break;
case 46: // 1 string to match.
if (memcmp(Name.data()+0, "objc_protocol_requires_explicit_implementation", 46) != 0)
break;
return ParsedAttr::AT_ObjCExplicitProtocolImpl; // "objc_protocol_requires_explicit_implementation"
}
} else if (ParsedAttr::AS_Declspec == Syntax) {
switch (Name.size()) {
default: break;
case 4: // 1 string to match.
if (memcmp(Name.data()+0, "uuid", 4) != 0)
break;
return ParsedAttr::AT_Uuid; // "uuid"
case 5: // 2 strings to match.
switch (Name[0]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "lign", 4) != 0)
break;
return ParsedAttr::AT_Aligned; // "align"
case 'n': // 1 string to match.
if (memcmp(Name.data()+1, "aked", 4) != 0)
break;
return ParsedAttr::AT_Naked; // "naked"
}
break;
case 6: // 1 string to match.
if (memcmp(Name.data()+0, "thread", 6) != 0)
break;
return ParsedAttr::AT_Thread; // "thread"
case 7: // 2 strings to match.
if (memcmp(Name.data()+0, "no", 2) != 0)
break;
switch (Name[2]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+3, "lias", 4) != 0)
break;
return ParsedAttr::AT_NoAlias; // "noalias"
case 't': // 1 string to match.
if (memcmp(Name.data()+3, "hrow", 4) != 0)
break;
return ParsedAttr::AT_NoThrow; // "nothrow"
}
break;
case 8: // 8 strings to match.
switch (Name[0]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+1, "_host__", 7) != 0)
break;
return ParsedAttr::AT_CUDAHost; // "__host__"
case 'a': // 1 string to match.
if (memcmp(Name.data()+1, "llocate", 7) != 0)
break;
return ParsedAttr::AT_Section; // "allocate"
case 'c': // 1 string to match.
if (memcmp(Name.data()+1, "ode_seg", 7) != 0)
break;
return ParsedAttr::AT_CodeSeg; // "code_seg"
case 'n': // 3 strings to match.
if (Name[1] != 'o')
break;
switch (Name[2]) {
default: break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+3, "nline", 5) != 0)
break;
return ParsedAttr::AT_NoInline; // "noinline"
case 'r': // 1 string to match.
if (memcmp(Name.data()+3, "eturn", 5) != 0)
break;
return ParsedAttr::AT_NoReturn; // "noreturn"
case 'v': // 1 string to match.
if (memcmp(Name.data()+3, "table", 5) != 0)
break;
return ParsedAttr::AT_MSNoVTable; // "novtable"
}
break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+1, "roperty", 7) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "property"
case 'r': // 1 string to match.
if (memcmp(Name.data()+1, "estrict", 7) != 0)
break;
return ParsedAttr::AT_Restrict; // "restrict"
}
break;
case 9: // 3 strings to match.
switch (Name[0]) {
default: break;
case 'd': // 2 strings to match.
if (memcmp(Name.data()+1, "ll", 2) != 0)
break;
switch (Name[3]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+4, "xport", 5) != 0)
break;
return ParsedAttr::AT_DLLExport; // "dllexport"
case 'i': // 1 string to match.
if (memcmp(Name.data()+4, "mport", 5) != 0)
break;
return ParsedAttr::AT_DLLImport; // "dllimport"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+1, "electany", 8) != 0)
break;
return ParsedAttr::AT_SelectAny; // "selectany"
}
break;
case 10: // 4 strings to match.
switch (Name[0]) {
default: break;
case '_': // 3 strings to match.
if (Name[1] != '_')
break;
switch (Name[2]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+3, "evice__", 7) != 0)
break;
return ParsedAttr::AT_CUDADevice; // "__device__"
case 'g': // 1 string to match.
if (memcmp(Name.data()+3, "lobal__", 7) != 0)
break;
return ParsedAttr::AT_CUDAGlobal; // "__global__"
case 's': // 1 string to match.
if (memcmp(Name.data()+3, "hared__", 7) != 0)
break;
return ParsedAttr::AT_CUDAShared; // "__shared__"
}
break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+1, "eprecated", 9) != 0)
break;
return ParsedAttr::AT_Deprecated; // "deprecated"
}
break;
case 11: // 1 string to match.
if (memcmp(Name.data()+0, "empty_bases", 11) != 0)
break;
return ParsedAttr::AT_EmptyBases; // "empty_bases"
case 12: // 3 strings to match.
switch (Name[0]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+1, "_constant__", 11) != 0)
break;
return ParsedAttr::AT_CUDAConstant; // "__constant__"
case 'c': // 2 strings to match.
if (memcmp(Name.data()+1, "pu_", 3) != 0)
break;
switch (Name[4]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+5, "ispatch", 7) != 0)
break;
return ParsedAttr::AT_CPUDispatch; // "cpu_dispatch"
case 's': // 1 string to match.
if (memcmp(Name.data()+5, "pecific", 7) != 0)
break;
return ParsedAttr::AT_CPUSpecific; // "cpu_specific"
}
break;
}
break;
case 14: // 1 string to match.
if (memcmp(Name.data()+0, "layout_version", 14) != 0)
break;
return ParsedAttr::AT_LayoutVersion; // "layout_version"
case 17: // 1 string to match.
if (memcmp(Name.data()+0, "__launch_bounds__", 17) != 0)
break;
return ParsedAttr::AT_CUDALaunchBounds; // "__launch_bounds__"
case 18: // 2 strings to match.
if (memcmp(Name.data()+0, "__", 2) != 0)
break;
switch (Name[2]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+3, "udart_builtin__", 15) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "__cudart_builtin__"
case 'd': // 1 string to match.
if (memcmp(Name.data()+3, "evice_builtin__", 15) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "__device_builtin__"
}
break;
case 31: // 2 strings to match.
if (memcmp(Name.data()+0, "__device_builtin_", 17) != 0)
break;
switch (Name[17]) {
default: break;
case 's': // 1 string to match.
if (memcmp(Name.data()+18, "urface_type__", 13) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "__device_builtin_surface_type__"
case 't': // 1 string to match.
if (memcmp(Name.data()+18, "exture_type__", 13) != 0)
break;
return ParsedAttr::IgnoredAttribute; // "__device_builtin_texture_type__"
}
break;
}
} else if (ParsedAttr::AS_Microsoft == Syntax) {
switch (Name.size()) {
default: break;
case 4: // 1 string to match.
if (memcmp(Name.data()+0, "uuid", 4) != 0)
break;
return ParsedAttr::AT_Uuid; // "uuid"
}
} else if (ParsedAttr::AS_CXX11 == Syntax) {
switch (Name.size()) {
default: break;
case 8: // 3 strings to match.
if (memcmp(Name.data()+0, "gnu::", 5) != 0)
break;
switch (Name[5]) {
default: break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+6, "ar", 2) != 0)
break;
return ParsedAttr::AT_MipsLongCall; // "gnu::far"
case 'h': // 1 string to match.
if (memcmp(Name.data()+6, "ot", 2) != 0)
break;
return ParsedAttr::AT_Hot; // "gnu::hot"
case 'p': // 1 string to match.
if (memcmp(Name.data()+6, "cs", 2) != 0)
break;
return ParsedAttr::AT_Pcs; // "gnu::pcs"
}
break;
case 9: // 6 strings to match.
if (memcmp(Name.data()+0, "gnu::", 5) != 0)
break;
switch (Name[5]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+6, "old", 3) != 0)
break;
return ParsedAttr::AT_Cold; // "gnu::cold"
case 'm': // 1 string to match.
if (memcmp(Name.data()+6, "ode", 3) != 0)
break;
return ParsedAttr::AT_Mode; // "gnu::mode"
case 'n': // 1 string to match.
if (memcmp(Name.data()+6, "ear", 3) != 0)
break;
return ParsedAttr::AT_MipsShortCall; // "gnu::near"
case 'p': // 1 string to match.
if (memcmp(Name.data()+6, "ure", 3) != 0)
break;
return ParsedAttr::AT_Pure; // "gnu::pure"
case 'u': // 1 string to match.
if (memcmp(Name.data()+6, "sed", 3) != 0)
break;
return ParsedAttr::AT_Used; // "gnu::used"
case 'w': // 1 string to match.
if (memcmp(Name.data()+6, "eak", 3) != 0)
break;
return ParsedAttr::AT_Weak; // "gnu::weak"
}
break;
case 10: // 6 strings to match.
switch (Name[0]) {
default: break;
case ':': // 1 string to match.
if (memcmp(Name.data()+1, ":noreturn", 9) != 0)
break;
return ParsedAttr::AT_CXX11NoReturn; // "::noreturn"
case 'g': // 5 strings to match.
if (memcmp(Name.data()+1, "nu::", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+6, "lias", 4) != 0)
break;
return ParsedAttr::AT_Alias; // "gnu::alias"
case 'c': // 2 strings to match.
switch (Name[6]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+7, "ecl", 3) != 0)
break;
return ParsedAttr::AT_CDecl; // "gnu::cdecl"
case 'o': // 1 string to match.
if (memcmp(Name.data()+7, "nst", 3) != 0)
break;
return ParsedAttr::AT_Const; // "gnu::const"
}
break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+6, "func", 4) != 0)
break;
return ParsedAttr::AT_IFunc; // "gnu::ifunc"
case 'n': // 1 string to match.
if (memcmp(Name.data()+6, "aked", 4) != 0)
break;
return ParsedAttr::AT_Naked; // "gnu::naked"
}
break;
}
break;
case 11: // 10 strings to match.
switch (Name[0]) {
default: break;
case ':': // 1 string to match.
if (memcmp(Name.data()+1, ":nodiscard", 10) != 0)
break;
return ParsedAttr::AT_WarnUnusedResult; // "::nodiscard"
case 'g': // 9 strings to match.
if (memcmp(Name.data()+1, "nu::", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+6, "ommon", 5) != 0)
break;
return ParsedAttr::AT_Common; // "gnu::common"
case 'f': // 1 string to match.
if (memcmp(Name.data()+6, "ormat", 5) != 0)
break;
return ParsedAttr::AT_Format; // "gnu::format"
case 'm': // 3 strings to match.
switch (Name[6]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+7, "lloc", 4) != 0)
break;
return ParsedAttr::AT_Restrict; // "gnu::malloc"
case 'i': // 1 string to match.
if (memcmp(Name.data()+7, "ps16", 4) != 0)
break;
return ParsedAttr::AT_Mips16; // "gnu::mips16"
case 's': // 1 string to match.
if (memcmp(Name.data()+7, "_abi", 4) != 0)
break;
return ParsedAttr::AT_MSABI; // "gnu::ms_abi"
}
break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+6, "acked", 5) != 0)
break;
return ParsedAttr::AT_Packed; // "gnu::packed"
case 's': // 1 string to match.
if (memcmp(Name.data()+6, "ignal", 5) != 0)
break;
return ParsedAttr::AT_AVRSignal; // "gnu::signal"
case 't': // 1 string to match.
if (memcmp(Name.data()+6, "arget", 5) != 0)
break;
return ParsedAttr::AT_Target; // "gnu::target"
case 'u': // 1 string to match.
if (memcmp(Name.data()+6, "nused", 5) != 0)
break;
return ParsedAttr::AT_Unused; // "gnu::unused"
}
break;
}
break;
case 12: // 14 strings to match.
switch (Name[0]) {
default: break;
case ':': // 1 string to match.
if (memcmp(Name.data()+1, ":deprecated", 11) != 0)
break;
return ParsedAttr::AT_Deprecated; // "::deprecated"
case 'g': // 13 strings to match.
if (memcmp(Name.data()+1, "nu::", 4) != 0)
break;
switch (Name[5]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+6, "_const", 6) != 0)
break;
return ParsedAttr::AT_Const; // "gnu::__const"
case 'a': // 2 strings to match.
switch (Name[6]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+7, "i_tag", 5) != 0)
break;
return ParsedAttr::AT_AbiTag; // "gnu::abi_tag"
case 'l': // 1 string to match.
if (memcmp(Name.data()+7, "igned", 5) != 0)
break;
return ParsedAttr::AT_Aligned; // "gnu::aligned"
}
break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+6, "leanup", 6) != 0)
break;
return ParsedAttr::AT_Cleanup; // "gnu::cleanup"
case 'f': // 1 string to match.
if (memcmp(Name.data()+6, "latten", 6) != 0)
break;
return ParsedAttr::AT_Flatten; // "gnu::flatten"
case 'n': // 3 strings to match.
if (Name[6] != 'o')
break;
switch (Name[7]) {
default: break;
case 'd': // 1 string to match.
if (memcmp(Name.data()+8, "ebug", 4) != 0)
break;
return ParsedAttr::AT_NoDebug; // "gnu::nodebug"
case 'n': // 1 string to match.
if (memcmp(Name.data()+8, "null", 4) != 0)
break;
return ParsedAttr::AT_NonNull; // "gnu::nonnull"
case 't': // 1 string to match.
if (memcmp(Name.data()+8, "hrow", 4) != 0)
break;
return ParsedAttr::AT_NoThrow; // "gnu::nothrow"
}
break;
case 'r': // 2 strings to match.
if (memcmp(Name.data()+6, "eg", 2) != 0)
break;
switch (Name[8]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+9, "all", 3) != 0)
break;
return ParsedAttr::AT_RegCall; // "gnu::regcall"
case 'p': // 1 string to match.
if (memcmp(Name.data()+9, "arm", 3) != 0)
break;
return ParsedAttr::AT_Regparm; // "gnu::regparm"
}
break;
case 's': // 2 strings to match.
switch (Name[6]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+7, "ction", 5) != 0)
break;
return ParsedAttr::AT_Section; // "gnu::section"
case 't': // 1 string to match.
if (memcmp(Name.data()+7, "dcall", 5) != 0)
break;
return ParsedAttr::AT_StdCall; // "gnu::stdcall"
}
break;
case 'w': // 1 string to match.
if (memcmp(Name.data()+6, "eakref", 6) != 0)
break;
return ParsedAttr::AT_WeakRef; // "gnu::weakref"
}
break;
}
break;
case 13: // 12 strings to match.
switch (Name[0]) {
default: break;
case ':': // 1 string to match.
if (memcmp(Name.data()+1, ":fallthrough", 12) != 0)
break;
return ParsedAttr::AT_FallThrough; // "::fallthrough"
case 'c': // 2 strings to match.
if (memcmp(Name.data()+1, "lang::", 6) != 0)
break;
switch (Name[7]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+8, "locks", 5) != 0)
break;
return ParsedAttr::AT_Blocks; // "clang::blocks"
case 'p': // 1 string to match.
if (memcmp(Name.data()+8, "ascal", 5) != 0)
break;
return ParsedAttr::AT_Pascal; // "clang::pascal"
}
break;
case 'g': // 9 strings to match.
switch (Name[1]) {
default: break;
case 'n': // 8 strings to match.
if (memcmp(Name.data()+2, "u::", 3) != 0)
break;
switch (Name[5]) {
default: break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+6, "astcall", 7) != 0)
break;
return ParsedAttr::AT_FastCall; // "gnu::fastcall"
case 'n': // 4 strings to match.
if (Name[6] != 'o')
break;
switch (Name[7]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+8, "ommon", 5) != 0)
break;
return ParsedAttr::AT_NoCommon; // "gnu::nocommon"
case 'i': // 1 string to match.
if (memcmp(Name.data()+8, "nline", 5) != 0)
break;
return ParsedAttr::AT_NoInline; // "gnu::noinline"
case 'm': // 1 string to match.
if (memcmp(Name.data()+8, "ips16", 5) != 0)
break;
return ParsedAttr::AT_NoMips16; // "gnu::nomips16"
case 'r': // 1 string to match.
if (memcmp(Name.data()+8, "eturn", 5) != 0)
break;
return ParsedAttr::AT_NoReturn; // "gnu::noreturn"
}
break;
case 's': // 2 strings to match.
switch (Name[6]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+7, "ntinel", 6) != 0)
break;
return ParsedAttr::AT_Sentinel; // "gnu::sentinel"
case 'y': // 1 string to match.
if (memcmp(Name.data()+7, "sv_abi", 6) != 0)
break;
return ParsedAttr::AT_SysVABI; // "gnu::sysv_abi"
}
break;
case 't': // 1 string to match.
if (memcmp(Name.data()+6, "hiscall", 7) != 0)
break;
return ParsedAttr::AT_ThisCall; // "gnu::thiscall"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+2, "l::suppress", 11) != 0)
break;
return ParsedAttr::AT_Suppress; // "gsl::suppress"
}
break;
}
break;
case 14: // 13 strings to match.
switch (Name[0]) {
default: break;
case ':': // 1 string to match.
if (memcmp(Name.data()+1, ":maybe_unused", 13) != 0)
break;
return ParsedAttr::AT_Unused; // "::maybe_unused"
case 'c': // 3 strings to match.
if (memcmp(Name.data()+1, "lang::", 6) != 0)
break;
switch (Name[7]) {
default: break;
case 'm': // 1 string to match.
if (memcmp(Name.data()+8, "insize", 6) != 0)
break;
return ParsedAttr::AT_MinSize; // "clang::minsize"
case 'o': // 2 strings to match.
switch (Name[8]) {
default: break;
case 'b': // 1 string to match.
if (memcmp(Name.data()+9, "jc_gc", 5) != 0)
break;
return ParsedAttr::AT_ObjCGC; // "clang::objc_gc"
case 'p': // 1 string to match.
if (memcmp(Name.data()+9, "tnone", 5) != 0)
break;
return ParsedAttr::AT_OptimizeNone; // "clang::optnone"
}
break;
}
break;
case 'g': // 9 strings to match.
if (memcmp(Name.data()+1, "nu::", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'd': // 2 strings to match.
if (memcmp(Name.data()+6, "ll", 2) != 0)
break;
switch (Name[8]) {
default: break;
case 'e': // 1 string to match.
if (memcmp(Name.data()+9, "xport", 5) != 0)
break;
return ParsedAttr::AT_DLLExport; // "gnu::dllexport"
case 'i': // 1 string to match.
if (memcmp(Name.data()+9, "mport", 5) != 0)
break;
return ParsedAttr::AT_DLLImport; // "gnu::dllimport"
}
break;
case 'i': // 1 string to match.
if (memcmp(Name.data()+6, "nterrupt", 8) != 0)
break;
return ParsedAttr::AT_Interrupt; // "gnu::interrupt"
case 'l': // 1 string to match.
if (memcmp(Name.data()+6, "ong_call", 8) != 0)
break;
return ParsedAttr::AT_MipsLongCall; // "gnu::long_call"
case 'm': // 3 strings to match.
switch (Name[6]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+7, "y_alias", 7) != 0)
break;
return ParsedAttr::AT_MayAlias; // "gnu::may_alias"
case 'i': // 1 string to match.
if (memcmp(Name.data()+7, "cromips", 7) != 0)
break;
return ParsedAttr::AT_MicroMips; // "gnu::micromips"
case 's': // 1 string to match.
if (memcmp(Name.data()+7, "_struct", 7) != 0)
break;
return ParsedAttr::AT_MSStruct; // "gnu::ms_struct"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+6, "electany", 8) != 0)
break;
return ParsedAttr::AT_SelectAny; // "gnu::selectany"
case 't': // 1 string to match.
if (memcmp(Name.data()+6, "ls_model", 8) != 0)
break;
return ParsedAttr::AT_TLSModel; // "gnu::tls_model"
}
break;
}
break;
case 15: // 14 strings to match.
switch (Name[0]) {
default: break;
case 'c': // 5 strings to match.
if (memcmp(Name.data()+1, "lang::", 6) != 0)
break;
switch (Name[7]) {
default: break;
case 'N': // 1 string to match.
if (memcmp(Name.data()+8, "SObject", 7) != 0)
break;
return ParsedAttr::AT_ObjCNSObject; // "clang::NSObject"
case 'a': // 1 string to match.
if (memcmp(Name.data()+8, "nnotate", 7) != 0)
break;
return ParsedAttr::AT_Annotate; // "clang::annotate"
case 'i': // 2 strings to match.
if (Name[8] != 'b')
break;
switch (Name[9]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+10, "ction", 5) != 0)
break;
return ParsedAttr::AT_IBAction; // "clang::ibaction"
case 'o': // 1 string to match.
if (memcmp(Name.data()+10, "utlet", 5) != 0)
break;
return ParsedAttr::AT_IBOutlet; // "clang::iboutlet"
}
break;
case 'n': // 1 string to match.
if (memcmp(Name.data()+8, "oescape", 7) != 0)
break;
return ParsedAttr::AT_NoEscape; // "clang::noescape"
}
break;
case 'g': // 9 strings to match.
if (memcmp(Name.data()+1, "nu::", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'a': // 2 strings to match.
switch (Name[6]) {
default: break;
case 'l': // 1 string to match.
if (memcmp(Name.data()+7, "loc_size", 8) != 0)
break;
return ParsedAttr::AT_AllocSize; // "gnu::alloc_size"
case 'r': // 1 string to match.
if (memcmp(Name.data()+7, "tificial", 8) != 0)
break;
return ParsedAttr::AT_Artificial; // "gnu::artificial"
}
break;
case 'd': // 2 strings to match.
if (Name[6] != 'e')
break;
switch (Name[7]) {
default: break;
case 'p': // 1 string to match.
if (memcmp(Name.data()+8, "recated", 7) != 0)
break;
return ParsedAttr::AT_Deprecated; // "gnu::deprecated"
case 's': // 1 string to match.
if (memcmp(Name.data()+8, "tructor", 7) != 0)
break;
return ParsedAttr::AT_Destructor; // "gnu::destructor"
}
break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+6, "ormat_arg", 9) != 0)
break;
return ParsedAttr::AT_FormatArg; // "gnu::format_arg"
case 'g': // 1 string to match.
if (memcmp(Name.data()+6, "nu_inline", 9) != 0)
break;
return ParsedAttr::AT_GNUInline; // "gnu::gnu_inline"
case 'n': // 1 string to match.
if (memcmp(Name.data()+6, "ocf_check", 9) != 0)
break;
return ParsedAttr::AT_AnyX86NoCfCheck; // "gnu::nocf_check"
case 's': // 1 string to match.
if (memcmp(Name.data()+6, "hort_call", 9) != 0)
break;
return ParsedAttr::AT_MipsShortCall; // "gnu::short_call"
case 'v': // 1 string to match.
if (memcmp(Name.data()+6, "isibility", 9) != 0)
break;
return ParsedAttr::AT_Visibility; // "gnu::visibility"
}
break;
}
break;
case 16: // 8 strings to match.
switch (Name[0]) {
default: break;
case 'c': // 3 strings to match.
if (memcmp(Name.data()+1, "lang::", 6) != 0)
break;
switch (Name[7]) {
default: break;
case 'f': // 1 string to match.
if (memcmp(Name.data()+8, "lag_enum", 8) != 0)
break;
return ParsedAttr::AT_FlagEnum; // "clang::flag_enum"
case 's': // 1 string to match.
if (memcmp(Name.data()+8, "wiftcall", 8) != 0)
break;
return ParsedAttr::AT_SwiftCall; // "clang::swiftcall"
case 'v': // 1 string to match.
if (memcmp(Name.data()+8, "ecreturn", 8) != 0)
break;
return ParsedAttr::AT_VecReturn; // "clang::vecreturn"
}
break;
case 'g': // 5 strings to match.
if (memcmp(Name.data()+1, "nu::", 4) != 0)
break;
switch (Name[5]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+6, "lloc_align", 10) != 0)
break;
return ParsedAttr::AT_AllocAlign; // "gnu::alloc_align"
case 'c': // 1 string to match.
if (memcmp(Name.data()+6, "onstructor", 10) != 0)
break;
return ParsedAttr::AT_Constructor; // "gnu::constructor"
case 'n': // 1 string to match.
if (memcmp(Name.data()+6, "omicromips", 10) != 0)
break;
return ParsedAttr::AT_NoMicroMips; // "gnu::nomicromips"
case 'v': // 1 string to match.
if (memcmp(Name.data()+6, "ector_size", 10) != 0)
break;
return ParsedAttr::AT_VectorSize; // "gnu::vector_size"
case 'w': // 1 string to match.
if (memcmp(Name.data()+6, "arn_unused", 10) != 0)
break;
return ParsedAttr::AT_WarnUnused; // "gnu::warn_unused"
}
break;
}
break;
case 17: // 5 strings to match.
if (memcmp(Name.data()+0, "clang::", 7) != 0)
break;
switch (Name[7]) {
default: break;
case 'c': // 3 strings to match.
switch (Name[8]) {
default: break;
case 'a': // 1 string to match.
if (memcmp(Name.data()+9, "pability", 8) != 0)
break;
return ParsedAttr::AT_Capability; // "clang::capability"
case 'o': // 2 strings to match.
if (Name[9] != 'n')
break;
switch (Name[10]) {
default: break;
case 's': // 1 string to match.
if (memcmp(Name.data()+11, "umable", 6) != 0)
break;
return ParsedAttr::AT_Consumable; // "clang::consumable"
case 'v': // 1 string to match.
if (memcmp(Name.data()+11, "ergent", 6) != 0)
break;
return ParsedAttr::AT_Convergent; // "clang::convergent"
}
break;
}
break;
case 'n': // 1 string to match.
if (memcmp(Name.data()+8, "o_destroy", 9) != 0)
break;
return ParsedAttr::AT_NoDestroy; // "clang::no_destroy"
case 'v': // 1 string to match.
if (memcmp(Name.data()+8, "ectorcall", 9) != 0)
break;
return ParsedAttr::AT_VectorCall; // "clang::vectorcall"
}
break;
case 18: // 13 strings to match.
switch (Name[0]) {
default: break;
case 'c': // 10 strings to match.
if (memcmp(Name.data()+1, "lang::", 6) != 0)
break;
switch (Name[7]) {
default: break;
case 'c': // 1 string to match.
if (memcmp(Name.data()+8, "f_consumed", 10) != 0)
break;
return ParsedAttr::AT_CFConsumed; // "clang::cf_consumed"
case 'f': // 1 string to match.
if (memcmp(Name.data()+8, "allthrough", 10) != 0)
break;
return ParsedAttr::AT_FallThrough; // "clang::fallthrough"
case 'g': // 1 string to match.
if (memcmp(Name.data()+8, "uarded_var", 10) != 0)
break;
return ParsedAttr::AT_GuardedVar; // "clang::guarded_var"
case 'n': // 3 strings to match.
switch (Name[8]) {
default: break;
case 'o': // 2 strings to match.
switch (Name[9]) {
default: break;
case '_': // 1 string to match.
if (memcmp(Name.data()+10, "sanitize", 8) != 0)
break;
return ParsedAttr::AT_NoSanitize; // "clang::no_sanitize"
case 'd': // 1 string to match.
if (memcmp(Name.data()+10, "uplicate", 8) != 0)
break;
return ParsedAttr::AT_NoDuplicate; // "clang::noduplicate"
}
break;
case 's': // 1 string to match.
if (memcmp(Name.data()+9, "_consumed", 9) != 0)
break;
return ParsedAttr::AT_NSConsumed; // "clang::ns_consumed"
}
break;
case 'o': // 1 string to match.
if (memcmp(Name.data()+8, "bjc_bridge", 10) != 0)
break;
return ParsedAttr::AT_ObjCBridge; // "clang::objc_bridge"
case<