Source file src/cmd/compile/internal/ir/op_string.go

     1  // Code generated by "stringer -type=Op -trimprefix=O node.go"; DO NOT EDIT.
     2  
     3  package ir
     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[OXXX-0]
    12  	_ = x[ONAME-1]
    13  	_ = x[ONONAME-2]
    14  	_ = x[OTYPE-3]
    15  	_ = x[OLITERAL-4]
    16  	_ = x[ONIL-5]
    17  	_ = x[OADD-6]
    18  	_ = x[OSUB-7]
    19  	_ = x[OOR-8]
    20  	_ = x[OXOR-9]
    21  	_ = x[OADDSTR-10]
    22  	_ = x[OADDR-11]
    23  	_ = x[OANDAND-12]
    24  	_ = x[OAPPEND-13]
    25  	_ = x[OBYTES2STR-14]
    26  	_ = x[OBYTES2STRTMP-15]
    27  	_ = x[ORUNES2STR-16]
    28  	_ = x[OSTR2BYTES-17]
    29  	_ = x[OSTR2BYTESTMP-18]
    30  	_ = x[OSTR2RUNES-19]
    31  	_ = x[OSLICE2ARR-20]
    32  	_ = x[OSLICE2ARRPTR-21]
    33  	_ = x[OAS-22]
    34  	_ = x[OAS2-23]
    35  	_ = x[OAS2DOTTYPE-24]
    36  	_ = x[OAS2FUNC-25]
    37  	_ = x[OAS2MAPR-26]
    38  	_ = x[OAS2RECV-27]
    39  	_ = x[OASOP-28]
    40  	_ = x[OCALL-29]
    41  	_ = x[OCALLFUNC-30]
    42  	_ = x[OCALLMETH-31]
    43  	_ = x[OCALLINTER-32]
    44  	_ = x[OCAP-33]
    45  	_ = x[OCLEAR-34]
    46  	_ = x[OCLOSE-35]
    47  	_ = x[OCLOSURE-36]
    48  	_ = x[OCOMPLIT-37]
    49  	_ = x[OMAPLIT-38]
    50  	_ = x[OSTRUCTLIT-39]
    51  	_ = x[OARRAYLIT-40]
    52  	_ = x[OSLICELIT-41]
    53  	_ = x[OPTRLIT-42]
    54  	_ = x[OCONV-43]
    55  	_ = x[OCONVIFACE-44]
    56  	_ = x[OCONVNOP-45]
    57  	_ = x[OCOPY-46]
    58  	_ = x[ODCL-47]
    59  	_ = x[ODCLFUNC-48]
    60  	_ = x[ODELETE-49]
    61  	_ = x[ODOT-50]
    62  	_ = x[ODOTPTR-51]
    63  	_ = x[ODOTMETH-52]
    64  	_ = x[ODOTINTER-53]
    65  	_ = x[OXDOT-54]
    66  	_ = x[ODOTTYPE-55]
    67  	_ = x[ODOTTYPE2-56]
    68  	_ = x[OEQ-57]
    69  	_ = x[ONE-58]
    70  	_ = x[OLT-59]
    71  	_ = x[OLE-60]
    72  	_ = x[OGE-61]
    73  	_ = x[OGT-62]
    74  	_ = x[ODEREF-63]
    75  	_ = x[OINDEX-64]
    76  	_ = x[OINDEXMAP-65]
    77  	_ = x[OKEY-66]
    78  	_ = x[OSTRUCTKEY-67]
    79  	_ = x[OLEN-68]
    80  	_ = x[OMAKE-69]
    81  	_ = x[OMAKECHAN-70]
    82  	_ = x[OMAKEMAP-71]
    83  	_ = x[OMAKESLICE-72]
    84  	_ = x[OMAKESLICECOPY-73]
    85  	_ = x[OMUL-74]
    86  	_ = x[ODIV-75]
    87  	_ = x[OMOD-76]
    88  	_ = x[OLSH-77]
    89  	_ = x[ORSH-78]
    90  	_ = x[OAND-79]
    91  	_ = x[OANDNOT-80]
    92  	_ = x[ONEW-81]
    93  	_ = x[ONOT-82]
    94  	_ = x[OBITNOT-83]
    95  	_ = x[OPLUS-84]
    96  	_ = x[ONEG-85]
    97  	_ = x[OOROR-86]
    98  	_ = x[OPANIC-87]
    99  	_ = x[OPRINT-88]
   100  	_ = x[OPRINTLN-89]
   101  	_ = x[OPAREN-90]
   102  	_ = x[OSEND-91]
   103  	_ = x[OSLICE-92]
   104  	_ = x[OSLICEARR-93]
   105  	_ = x[OSLICESTR-94]
   106  	_ = x[OSLICE3-95]
   107  	_ = x[OSLICE3ARR-96]
   108  	_ = x[OSLICEHEADER-97]
   109  	_ = x[OSTRINGHEADER-98]
   110  	_ = x[ORECOVER-99]
   111  	_ = x[ORECOVERFP-100]
   112  	_ = x[ORECV-101]
   113  	_ = x[ORUNESTR-102]
   114  	_ = x[OSELRECV2-103]
   115  	_ = x[OMIN-104]
   116  	_ = x[OMAX-105]
   117  	_ = x[OREAL-106]
   118  	_ = x[OIMAG-107]
   119  	_ = x[OCOMPLEX-108]
   120  	_ = x[OUNSAFEADD-109]
   121  	_ = x[OUNSAFESLICE-110]
   122  	_ = x[OUNSAFESLICEDATA-111]
   123  	_ = x[OUNSAFESTRING-112]
   124  	_ = x[OUNSAFESTRINGDATA-113]
   125  	_ = x[OMETHEXPR-114]
   126  	_ = x[OMETHVALUE-115]
   127  	_ = x[OBLOCK-116]
   128  	_ = x[OBREAK-117]
   129  	_ = x[OCASE-118]
   130  	_ = x[OCONTINUE-119]
   131  	_ = x[ODEFER-120]
   132  	_ = x[OFALL-121]
   133  	_ = x[OFOR-122]
   134  	_ = x[OGOTO-123]
   135  	_ = x[OIF-124]
   136  	_ = x[OLABEL-125]
   137  	_ = x[OGO-126]
   138  	_ = x[ORANGE-127]
   139  	_ = x[ORETURN-128]
   140  	_ = x[OSELECT-129]
   141  	_ = x[OSWITCH-130]
   142  	_ = x[OTYPESW-131]
   143  	_ = x[OINLCALL-132]
   144  	_ = x[OMAKEFACE-133]
   145  	_ = x[OITAB-134]
   146  	_ = x[OIDATA-135]
   147  	_ = x[OSPTR-136]
   148  	_ = x[OCFUNC-137]
   149  	_ = x[OCHECKNIL-138]
   150  	_ = x[ORESULT-139]
   151  	_ = x[OINLMARK-140]
   152  	_ = x[OLINKSYMOFFSET-141]
   153  	_ = x[OJUMPTABLE-142]
   154  	_ = x[OINTERFACESWITCH-143]
   155  	_ = x[ODYNAMICDOTTYPE-144]
   156  	_ = x[ODYNAMICDOTTYPE2-145]
   157  	_ = x[ODYNAMICTYPE-146]
   158  	_ = x[OTAILCALL-147]
   159  	_ = x[OGETG-148]
   160  	_ = x[OGETCALLERSP-149]
   161  	_ = x[OEND-150]
   162  }
   163  
   164  const _Op_name = "XXXNAMENONAMETYPELITERALNILADDSUBORXORADDSTRADDRANDANDAPPENDBYTES2STRBYTES2STRTMPRUNES2STRSTR2BYTESSTR2BYTESTMPSTR2RUNESSLICE2ARRSLICE2ARRPTRASAS2AS2DOTTYPEAS2FUNCAS2MAPRAS2RECVASOPCALLCALLFUNCCALLMETHCALLINTERCAPCLEARCLOSECLOSURECOMPLITMAPLITSTRUCTLITARRAYLITSLICELITPTRLITCONVCONVIFACECONVNOPCOPYDCLDCLFUNCDELETEDOTDOTPTRDOTMETHDOTINTERXDOTDOTTYPEDOTTYPE2EQNELTLEGEGTDEREFINDEXINDEXMAPKEYSTRUCTKEYLENMAKEMAKECHANMAKEMAPMAKESLICEMAKESLICECOPYMULDIVMODLSHRSHANDANDNOTNEWNOTBITNOTPLUSNEGORORPANICPRINTPRINTLNPARENSENDSLICESLICEARRSLICESTRSLICE3SLICE3ARRSLICEHEADERSTRINGHEADERRECOVERRECOVERFPRECVRUNESTRSELRECV2MINMAXREALIMAGCOMPLEXUNSAFEADDUNSAFESLICEUNSAFESLICEDATAUNSAFESTRINGUNSAFESTRINGDATAMETHEXPRMETHVALUEBLOCKBREAKCASECONTINUEDEFERFALLFORGOTOIFLABELGORANGERETURNSELECTSWITCHTYPESWINLCALLMAKEFACEITABIDATASPTRCFUNCCHECKNILRESULTINLMARKLINKSYMOFFSETJUMPTABLEINTERFACESWITCHDYNAMICDOTTYPEDYNAMICDOTTYPE2DYNAMICTYPETAILCALLGETGGETCALLERSPEND"
   165  
   166  var _Op_index = [...]uint16{0, 3, 7, 13, 17, 24, 27, 30, 33, 35, 38, 44, 48, 54, 60, 69, 81, 90, 99, 111, 120, 129, 141, 143, 146, 156, 163, 170, 177, 181, 185, 193, 201, 210, 213, 218, 223, 230, 237, 243, 252, 260, 268, 274, 278, 287, 294, 298, 301, 308, 314, 317, 323, 330, 338, 342, 349, 357, 359, 361, 363, 365, 367, 369, 374, 379, 387, 390, 399, 402, 406, 414, 421, 430, 443, 446, 449, 452, 455, 458, 461, 467, 470, 473, 479, 483, 486, 490, 495, 500, 507, 512, 516, 521, 529, 537, 543, 552, 563, 575, 582, 591, 595, 602, 610, 613, 616, 620, 624, 631, 640, 651, 666, 678, 694, 702, 711, 716, 721, 725, 733, 738, 742, 745, 749, 751, 756, 758, 763, 769, 775, 781, 787, 794, 802, 806, 811, 815, 820, 828, 834, 841, 854, 863, 878, 892, 907, 918, 926, 930, 941, 944}
   167  
   168  func (i Op) String() string {
   169  	if i >= Op(len(_Op_index)-1) {
   170  		return "Op(" + strconv.FormatInt(int64(i), 10) + ")"
   171  	}
   172  	return _Op_name[_Op_index[i]:_Op_index[i+1]]
   173  }
   174  

View as plain text