github.com/llir/llvm@v0.3.6/ir/enum/paramattr_string.go (about) 1 // Code generated by "stringer -linecomment -type ParamAttr"; DO NOT EDIT. 2 3 package enum 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[ParamAttrImmArg-0] 12 _ = x[ParamAttrInReg-1] 13 _ = x[ParamAttrNest-2] 14 _ = x[ParamAttrNoAlias-3] 15 _ = x[ParamAttrNoCapture-4] 16 _ = x[ParamAttrNoFree-5] 17 _ = x[ParamAttrNonNull-6] 18 _ = x[ParamAttrNoUndef-7] 19 _ = x[ParamAttrReadNone-8] 20 _ = x[ParamAttrReadOnly-9] 21 _ = x[ParamAttrReturned-10] 22 _ = x[ParamAttrSignExt-11] 23 _ = x[ParamAttrSwiftAsync-12] 24 _ = x[ParamAttrSwiftError-13] 25 _ = x[ParamAttrSwiftSelf-14] 26 _ = x[ParamAttrWriteOnly-15] 27 _ = x[ParamAttrZeroExt-16] 28 } 29 30 const _ParamAttr_name = "immarginregnestnoaliasnocapturenofreenonnullnoundefreadnonereadonlyreturnedsignextswiftasyncswifterrorswiftselfwriteonlyzeroext" 31 32 var _ParamAttr_index = [...]uint8{0, 6, 11, 15, 22, 31, 37, 44, 51, 59, 67, 75, 82, 92, 102, 111, 120, 127} 33 34 func (i ParamAttr) String() string { 35 if i >= ParamAttr(len(_ParamAttr_index)-1) { 36 return "ParamAttr(" + strconv.FormatInt(int64(i), 10) + ")" 37 } 38 return _ParamAttr_name[_ParamAttr_index[i]:_ParamAttr_index[i+1]] 39 }