github.com/llir/llvm@v0.3.6/ir/enum/selectionkind_string.go (about) 1 // Code generated by "stringer -linecomment -type SelectionKind"; 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[SelectionKindAny-0] 12 _ = x[SelectionKindExactMatch-1] 13 _ = x[SelectionKindLargest-2] 14 _ = x[SelectionKindNoDeduplicate-3] 15 _ = x[SelectionKindSameSize-4] 16 } 17 18 const _SelectionKind_name = "anyexactmatchlargestnodeduplicatesamesize" 19 20 var _SelectionKind_index = [...]uint8{0, 3, 13, 20, 33, 41} 21 22 func (i SelectionKind) String() string { 23 if i >= SelectionKind(len(_SelectionKind_index)-1) { 24 return "SelectionKind(" + strconv.FormatInt(int64(i), 10) + ")" 25 } 26 return _SelectionKind_name[_SelectionKind_index[i]:_SelectionKind_index[i+1]] 27 }