github.com/llir/llvm@v0.3.6/ir/enum/fastmathflag_string.go (about) 1 // Code generated by "stringer -linecomment -type FastMathFlag"; 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[FastMathFlagAFn-0] 12 _ = x[FastMathFlagARcp-1] 13 _ = x[FastMathFlagContract-2] 14 _ = x[FastMathFlagFast-3] 15 _ = x[FastMathFlagNInf-4] 16 _ = x[FastMathFlagNNaN-5] 17 _ = x[FastMathFlagNSZ-6] 18 _ = x[FastMathFlagReassoc-7] 19 } 20 21 const _FastMathFlag_name = "afnarcpcontractfastninfnnannszreassoc" 22 23 var _FastMathFlag_index = [...]uint8{0, 3, 7, 15, 19, 23, 27, 30, 37} 24 25 func (i FastMathFlag) String() string { 26 if i >= FastMathFlag(len(_FastMathFlag_index)-1) { 27 return "FastMathFlag(" + strconv.FormatInt(int64(i), 10) + ")" 28 } 29 return _FastMathFlag_name[_FastMathFlag_index[i]:_FastMathFlag_index[i+1]] 30 }