github.com/llir/llvm@v0.3.6/ir/enum/ipred_string.go (about)

     1  // Code generated by "stringer -linecomment -type IPred"; 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[IPredEQ-0]
    12  	_ = x[IPredNE-1]
    13  	_ = x[IPredSGE-2]
    14  	_ = x[IPredSGT-3]
    15  	_ = x[IPredSLE-4]
    16  	_ = x[IPredSLT-5]
    17  	_ = x[IPredUGE-6]
    18  	_ = x[IPredUGT-7]
    19  	_ = x[IPredULE-8]
    20  	_ = x[IPredULT-9]
    21  }
    22  
    23  const _IPred_name = "eqnesgesgtslesltugeugtuleult"
    24  
    25  var _IPred_index = [...]uint8{0, 2, 4, 7, 10, 13, 16, 19, 22, 25, 28}
    26  
    27  func (i IPred) String() string {
    28  	if i >= IPred(len(_IPred_index)-1) {
    29  		return "IPred(" + strconv.FormatInt(int64(i), 10) + ")"
    30  	}
    31  	return _IPred_name[_IPred_index[i]:_IPred_index[i+1]]
    32  }