use num_enum::TryFromPrimitive;
#[derive(Debug, PartialEq, TryFromPrimitive)]
#[repr(u64)]
pub enum AttributeKind {
Enum = 0,
IntKeyValue = 1,
StrKey = 3,
StrKeyValue = 4,
}
#[non_exhaustive]
#[derive(Copy, Clone, Debug, PartialEq, TryFromPrimitive)]
#[repr(u64)]
pub enum AttributeId {
Alignment = 1,
AlwaysInline = 2,
ByVal = 3,
InlineHint = 4,
InReg = 5,
MinSize = 6,
Naked = 7,
Nest = 8,
NoAlias = 9,
NoBuiltin = 10,
NoCapture = 11,
NoDuplicate = 12,
NoImplicitFloat = 13,
NoInline = 14,
NonLazyBind = 15,
NoRedZone = 16,
NoReturn = 17,
NoUnwind = 18,
OptimizeForSize = 19,
ReadNone = 20,
ReadOnly = 21,
Returned = 22,
ReturnsTwice = 23,
SExt = 24,
StackAlignment = 25,
StackProtect = 26,
StackProtectReq = 27,
StackProtectStrong = 28,
StructRet = 29,
SanitizeAddress = 30,
SanitizeThread = 31,
SanitizeMemory = 32,
UwTable = 33,
ZExt = 34,
Builtin = 35,
Cold = 36,
OptimizeNone = 37,
InAlloca = 38,
NonNull = 39,
JumpTable = 40,
Dereferenceable = 41,
DereferenceableOrNull = 42,
Convergent = 43,
SafeStack = 44,
ArgMemOnly = 45,
SwiftSelf = 46,
SwiftError = 47,
NoRecurse = 48,
InaccessiblememOnly = 49,
InaccessiblememOrArgmemonly = 50,
AllocSize = 51,
WriteOnly = 52,
Speculatable = 53,
StrictFp = 54,
SanitizeHwAddress = 55,
NoCfCheck = 56,
OptForFuzzing = 57,
Shadowcallstack = 58,
SpeculativeLoadHardening = 59,
ImmArg = 60,
WillReturn = 61,
NoFree = 62,
NoSync = 63,
SanitizeMemtag = 64,
Preallocated = 65,
NoMerge = 66,
NullPointerIsValid = 67,
NoUndef = 68,
ByRef = 69,
MustProgress = 70,
NoCallback = 71,
Hot = 72,
NoProfile = 73,
VScaleRange = 74,
SwiftAsync = 75,
NoSanitizeCoverage = 76,
ElementType = 77,
DisableSanitizerInstrumentation = 78,
}