github.com/llir/llvm@v0.3.6/ir/enum/returnattr_string.go (about) 1 // Code generated by "stringer -linecomment -type ReturnAttr"; 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[ReturnAttrInReg-0] 12 _ = x[ReturnAttrNoAlias-1] 13 _ = x[ReturnAttrNonNull-2] 14 _ = x[ReturnAttrNoUndef-3] 15 _ = x[ReturnAttrSignExt-4] 16 _ = x[ReturnAttrZeroExt-5] 17 } 18 19 const _ReturnAttr_name = "inregnoaliasnonnullnoundefsignextzeroext" 20 21 var _ReturnAttr_index = [...]uint8{0, 5, 12, 19, 26, 33, 40} 22 23 func (i ReturnAttr) String() string { 24 if i >= ReturnAttr(len(_ReturnAttr_index)-1) { 25 return "ReturnAttr(" + strconv.FormatInt(int64(i), 10) + ")" 26 } 27 return _ReturnAttr_name[_ReturnAttr_index[i]:_ReturnAttr_index[i+1]] 28 }