github.com/llir/llvm@v0.3.6/ir/enum/atomicop_string.go (about) 1 // Code generated by "stringer -linecomment -type AtomicOp"; 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[AtomicOpAdd-1] 12 _ = x[AtomicOpAnd-2] 13 _ = x[AtomicOpFAdd-3] 14 _ = x[AtomicOpFSub-4] 15 _ = x[AtomicOpMax-5] 16 _ = x[AtomicOpMin-6] 17 _ = x[AtomicOpNAnd-7] 18 _ = x[AtomicOpOr-8] 19 _ = x[AtomicOpSub-9] 20 _ = x[AtomicOpUMax-10] 21 _ = x[AtomicOpUMin-11] 22 _ = x[AtomicOpXChg-12] 23 _ = x[AtomicOpXor-13] 24 } 25 26 const _AtomicOp_name = "addandfaddfsubmaxminnandorsubumaxuminxchgxor" 27 28 var _AtomicOp_index = [...]uint8{0, 3, 6, 10, 14, 17, 20, 24, 26, 29, 33, 37, 41, 44} 29 30 func (i AtomicOp) String() string { 31 i -= 1 32 if i >= AtomicOp(len(_AtomicOp_index)-1) { 33 return "AtomicOp(" + strconv.FormatInt(int64(i+1), 10) + ")" 34 } 35 return _AtomicOp_name[_AtomicOp_index[i]:_AtomicOp_index[i+1]] 36 }