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

     1  // Code generated by "stringer -linecomment -type FPred"; 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[FPredFalse-0]
    12  	_ = x[FPredOEQ-1]
    13  	_ = x[FPredOGE-2]
    14  	_ = x[FPredOGT-3]
    15  	_ = x[FPredOLE-4]
    16  	_ = x[FPredOLT-5]
    17  	_ = x[FPredONE-6]
    18  	_ = x[FPredORD-7]
    19  	_ = x[FPredTrue-8]
    20  	_ = x[FPredUEQ-9]
    21  	_ = x[FPredUGE-10]
    22  	_ = x[FPredUGT-11]
    23  	_ = x[FPredULE-12]
    24  	_ = x[FPredULT-13]
    25  	_ = x[FPredUNE-14]
    26  	_ = x[FPredUNO-15]
    27  }
    28  
    29  const _FPred_name = "falseoeqogeogtoleoltoneordtrueuequgeugtuleultuneuno"
    30  
    31  var _FPred_index = [...]uint8{0, 5, 8, 11, 14, 17, 20, 23, 26, 30, 33, 36, 39, 42, 45, 48, 51}
    32  
    33  func (i FPred) String() string {
    34  	if i >= FPred(len(_FPred_index)-1) {
    35  		return "FPred(" + strconv.FormatInt(int64(i), 10) + ")"
    36  	}
    37  	return _FPred_name[_FPred_index[i]:_FPred_index[i+1]]
    38  }