...

Text file src/github.com/alecthomas/chroma/v2/lexers/testdata/mlir.expected

Documentation: github.com/alecthomas/chroma/v2/lexers/testdata

     1[
     2  {"type":"Comment","value":"// CHECK-LABEL: func @func_with_ops(%arg0: f32) {\n"},
     3  {"type":"KeywordType","value":"func"},
     4  {"type":"Text","value":" "},
     5  {"type":"NameFunction","value":"@func_with_ops"},
     6  {"type":"Punctuation","value":"("},
     7  {"type":"NameVariable","value":"%a"},
     8  {"type":"Text","value":" "},
     9  {"type":"Punctuation","value":":"},
    10  {"type":"Text","value":" "},
    11  {"type":"Keyword","value":"f32"},
    12  {"type":"Punctuation","value":")"},
    13  {"type":"Text","value":" "},
    14  {"type":"Punctuation","value":"{"},
    15  {"type":"Text","value":"\n  "},
    16  {"type":"Comment","value":"// CHECK: %0 = \"getTensor\"() : () -\u003e tensor\u003c4x4x?xf32\u003e\n"},
    17  {"type":"Text","value":"  "},
    18  {"type":"NameVariable","value":"%t"},
    19  {"type":"Text","value":" "},
    20  {"type":"Punctuation","value":"="},
    21  {"type":"Text","value":" "},
    22  {"type":"LiteralString","value":"\"getTensor\""},
    23  {"type":"Punctuation","value":"()"},
    24  {"type":"Text","value":" "},
    25  {"type":"Punctuation","value":":"},
    26  {"type":"Text","value":" "},
    27  {"type":"Punctuation","value":"()"},
    28  {"type":"Text","value":" "},
    29  {"type":"Punctuation","value":"-\u003e"},
    30  {"type":"Text","value":" "},
    31  {"type":"KeywordType","value":"tensor"},
    32  {"type":"Punctuation","value":"\u003c"},
    33  {"type":"LiteralNumber","value":"4x4x?x"},
    34  {"type":"KeywordType","value":"vector"},
    35  {"type":"Punctuation","value":"\u003c"},
    36  {"type":"LiteralNumber","value":"10x"},
    37  {"type":"Keyword","value":"f32"},
    38  {"type":"Punctuation","value":"\u003e\u003e\u003e"},
    39  {"type":"Text","value":"\n\n  "},
    40  {"type":"NameVariable","value":"%i6"},
    41  {"type":"Text","value":" "},
    42  {"type":"Punctuation","value":"="},
    43  {"type":"Text","value":" muli "},
    44  {"type":"NameVariable","value":"%i2"},
    45  {"type":"Punctuation","value":","},
    46  {"type":"Text","value":" "},
    47  {"type":"NameVariable","value":"%i2"},
    48  {"type":"Text","value":" "},
    49  {"type":"Punctuation","value":":"},
    50  {"type":"Text","value":" "},
    51  {"type":"Keyword","value":"i32"},
    52  {"type":"Text","value":"\n  "},
    53  {"type":"NameVariable","value":"%t2"},
    54  {"type":"Text","value":" "},
    55  {"type":"Punctuation","value":"="},
    56  {"type":"Text","value":" "},
    57  {"type":"LiteralString","value":"\"std.dim\""},
    58  {"type":"Punctuation","value":"("},
    59  {"type":"NameVariable","value":"%t"},
    60  {"type":"Punctuation","value":"){"},
    61  {"type":"NameLabel","value":"index ="},
    62  {"type":"Text","value":" "},
    63  {"type":"LiteralNumber","value":"2"},
    64  {"type":"Punctuation","value":"}"},
    65  {"type":"Text","value":" "},
    66  {"type":"Punctuation","value":":"},
    67  {"type":"Text","value":" "},
    68  {"type":"Punctuation","value":"("},
    69  {"type":"KeywordType","value":"tensor"},
    70  {"type":"Punctuation","value":"\u003c"},
    71  {"type":"LiteralNumber","value":"4x4x?x"},
    72  {"type":"KeywordType","value":"vector"},
    73  {"type":"Punctuation","value":"\u003c"},
    74  {"type":"LiteralNumber","value":"10x"},
    75  {"type":"Keyword","value":"f32"},
    76  {"type":"Punctuation","value":"\u003e\u003e)"},
    77  {"type":"Text","value":" "},
    78  {"type":"Punctuation","value":"-\u003e"},
    79  {"type":"Text","value":" "},
    80  {"type":"Keyword","value":"index"},
    81  {"type":"Text","value":"\n  "},
    82  {"type":"NameVariable","value":"%x"},
    83  {"type":"Text","value":" "},
    84  {"type":"Punctuation","value":"="},
    85  {"type":"Text","value":" "},
    86  {"type":"LiteralString","value":"\"foo\""},
    87  {"type":"Punctuation","value":"("},
    88  {"type":"NameVariable","value":"%a"},
    89  {"type":"Punctuation","value":","},
    90  {"type":"Text","value":" "},
    91  {"type":"NameVariable","value":"%a"},
    92  {"type":"Punctuation","value":")"},
    93  {"type":"Text","value":" "},
    94  {"type":"Punctuation","value":":"},
    95  {"type":"Text","value":" "},
    96  {"type":"Punctuation","value":"("},
    97  {"type":"Keyword","value":"f32"},
    98  {"type":"Punctuation","value":","},
    99  {"type":"Keyword","value":"f32"},
   100  {"type":"Punctuation","value":")"},
   101  {"type":"Text","value":" "},
   102  {"type":"Punctuation","value":"-\u003e"},
   103  {"type":"Text","value":" "},
   104  {"type":"Punctuation","value":"("},
   105  {"type":"KeywordType","value":"memref"},
   106  {"type":"Punctuation","value":"\u003c"},
   107  {"type":"LiteralNumber","value":"1 x"},
   108  {"type":"Text","value":" "},
   109  {"type":"Keyword","value":"i32"},
   110  {"type":"Punctuation","value":","},
   111  {"type":"Text","value":" "},
   112  {"type":"Punctuation","value":"("},
   113  {"type":"Text","value":"d0"},
   114  {"type":"Punctuation","value":")"},
   115  {"type":"Text","value":" "},
   116  {"type":"Punctuation","value":"-\u003e"},
   117  {"type":"Text","value":" "},
   118  {"type":"Punctuation","value":"("},
   119  {"type":"Text","value":"d0"},
   120  {"type":"Punctuation","value":"),"},
   121  {"type":"Text","value":" "},
   122  {"type":"LiteralNumber","value":"4"},
   123  {"type":"Punctuation","value":"\u003e)"},
   124  {"type":"Text","value":"\n\n  "},
   125  {"type":"KeywordType","value":"return"},
   126  {"type":"Text","value":"\n"},
   127  {"type":"Punctuation","value":"}"},
   128  {"type":"Text","value":"\n\n"},
   129  {"type":"KeywordType","value":"func"},
   130  {"type":"Text","value":" "},
   131  {"type":"NameFunction","value":"@count"},
   132  {"type":"Punctuation","value":"("},
   133  {"type":"NameVariable","value":"%x"},
   134  {"type":"Punctuation","value":":"},
   135  {"type":"Text","value":" "},
   136  {"type":"KeywordType","value":"tensor"},
   137  {"type":"Punctuation","value":"\u003c"},
   138  {"type":"Keyword","value":"i64"},
   139  {"type":"Punctuation","value":")"},
   140  {"type":"Text","value":" "},
   141  {"type":"Punctuation","value":"-\u003e"},
   142  {"type":"Text","value":" "},
   143  {"type":"Punctuation","value":"("},
   144  {"type":"Keyword","value":"i64"},
   145  {"type":"Punctuation","value":","},
   146  {"type":"Text","value":" "},
   147  {"type":"Keyword","value":"i64"},
   148  {"type":"Punctuation","value":")"},
   149  {"type":"Text","value":"\n  attributes "},
   150  {"type":"Punctuation","value":"{"},
   151  {"type":"NameLabel","value":"fruit ="},
   152  {"type":"Text","value":" "},
   153  {"type":"LiteralString","value":"\"banana\""},
   154  {"type":"Punctuation","value":"}"},
   155  {"type":"Text","value":" "},
   156  {"type":"Punctuation","value":"{"},
   157  {"type":"Text","value":"\n  "},
   158  {"type":"KeywordType","value":"return"},
   159  {"type":"Text","value":" "},
   160  {"type":"NameVariable","value":"%x"},
   161  {"type":"Punctuation","value":","},
   162  {"type":"Text","value":" "},
   163  {"type":"NameVariable","value":"%x"},
   164  {"type":"Punctuation","value":":"},
   165  {"type":"Text","value":" "},
   166  {"type":"Keyword","value":"i64"},
   167  {"type":"Punctuation","value":","},
   168  {"type":"Text","value":" "},
   169  {"type":"Keyword","value":"i64"},
   170  {"type":"Text","value":"\n"},
   171  {"type":"Punctuation","value":"}"},
   172  {"type":"Text","value":"\n\n"},
   173  {"type":"KeywordType","value":"func"},
   174  {"type":"Text","value":" "},
   175  {"type":"NameFunction","value":"@correct_number_of_regions"},
   176  {"type":"Punctuation","value":"()"},
   177  {"type":"Text","value":" "},
   178  {"type":"Punctuation","value":"{"},
   179  {"type":"Text","value":"\n    "},
   180  {"type":"Comment","value":"// CHECK: test.two_region_op\n"},
   181  {"type":"Text","value":"    "},
   182  {"type":"LiteralString","value":"\"test.two_region_op\""},
   183  {"type":"Punctuation","value":"()("},
   184  {"type":"Text","value":"\n      "},
   185  {"type":"Punctuation","value":"{"},
   186  {"type":"LiteralString","value":"\"work\""},
   187  {"type":"Punctuation","value":"()"},
   188  {"type":"Text","value":" "},
   189  {"type":"Punctuation","value":":"},
   190  {"type":"Text","value":" "},
   191  {"type":"Punctuation","value":"()"},
   192  {"type":"Text","value":" "},
   193  {"type":"Punctuation","value":"-\u003e"},
   194  {"type":"Text","value":" "},
   195  {"type":"Punctuation","value":"()},"},
   196  {"type":"Text","value":"\n      "},
   197  {"type":"Punctuation","value":"{"},
   198  {"type":"LiteralString","value":"\"work\""},
   199  {"type":"Punctuation","value":"()"},
   200  {"type":"Text","value":" "},
   201  {"type":"Punctuation","value":":"},
   202  {"type":"Text","value":" "},
   203  {"type":"Punctuation","value":"()"},
   204  {"type":"Text","value":" "},
   205  {"type":"Punctuation","value":"-\u003e"},
   206  {"type":"Text","value":" "},
   207  {"type":"Punctuation","value":"()}"},
   208  {"type":"Text","value":"\n    "},
   209  {"type":"Punctuation","value":")"},
   210  {"type":"Text","value":" "},
   211  {"type":"Punctuation","value":":"},
   212  {"type":"Text","value":" "},
   213  {"type":"Punctuation","value":"()"},
   214  {"type":"Text","value":" "},
   215  {"type":"Punctuation","value":"-\u003e"},
   216  {"type":"Text","value":" "},
   217  {"type":"Punctuation","value":"()"},
   218  {"type":"Text","value":"\n    "},
   219  {"type":"KeywordType","value":"return"},
   220  {"type":"Text","value":"\n"},
   221  {"type":"Punctuation","value":"}"},
   222  {"type":"Text","value":"\n\n"},
   223  {"type":"KeywordType","value":"func"},
   224  {"type":"Text","value":" "},
   225  {"type":"NameFunction","value":"@inline_notation"},
   226  {"type":"Punctuation","value":"()"},
   227  {"type":"Text","value":" "},
   228  {"type":"Punctuation","value":"-\u003e"},
   229  {"type":"Text","value":" "},
   230  {"type":"Keyword","value":"i32"},
   231  {"type":"Text","value":" "},
   232  {"type":"Punctuation","value":"{"},
   233  {"type":"Text","value":"\n  "},
   234  {"type":"NameVariable","value":"%1"},
   235  {"type":"Text","value":" "},
   236  {"type":"Punctuation","value":"="},
   237  {"type":"Text","value":" "},
   238  {"type":"LiteralString","value":"\"foo\""},
   239  {"type":"Punctuation","value":"()"},
   240  {"type":"Text","value":" "},
   241  {"type":"Punctuation","value":":"},
   242  {"type":"Text","value":" "},
   243  {"type":"Punctuation","value":"()"},
   244  {"type":"Text","value":" "},
   245  {"type":"Punctuation","value":"-\u003e"},
   246  {"type":"Text","value":" "},
   247  {"type":"Keyword","value":"i32"},
   248  {"type":"Text","value":" "},
   249  {"type":"KeywordType","value":"loc"},
   250  {"type":"Punctuation","value":"("},
   251  {"type":"LiteralString","value":"\"foo\""},
   252  {"type":"Punctuation","value":")"},
   253  {"type":"Text","value":"\n  "},
   254  {"type":"NameVariable","value":"%1p"},
   255  {"type":"Text","value":" "},
   256  {"type":"Punctuation","value":"="},
   257  {"type":"Text","value":" "},
   258  {"type":"LiteralString","value":"\"foo\""},
   259  {"type":"Punctuation","value":"()"},
   260  {"type":"Text","value":" "},
   261  {"type":"Punctuation","value":":"},
   262  {"type":"Text","value":" "},
   263  {"type":"Punctuation","value":"()"},
   264  {"type":"Text","value":" "},
   265  {"type":"Punctuation","value":"-\u003e"},
   266  {"type":"Text","value":" "},
   267  {"type":"Keyword","value":"i32"},
   268  {"type":"Text","value":" "},
   269  {"type":"KeywordType","value":"loc"},
   270  {"type":"Punctuation","value":"("},
   271  {"type":"Text","value":"fused"},
   272  {"type":"Punctuation","value":"\u003c"},
   273  {"type":"LiteralString","value":"\"myPass\""},
   274  {"type":"Punctuation","value":"\u003e["},
   275  {"type":"LiteralString","value":"\"abc\""},
   276  {"type":"Punctuation","value":","},
   277  {"type":"Text","value":" "},
   278  {"type":"LiteralString","value":"\"de\""},
   279  {"type":"Punctuation","value":"])"},
   280  {"type":"Text","value":"\n\n  "},
   281  {"type":"Comment","value":"// CHECK: constant 4 : index loc(callsite(\"foo\" at \"mysource.cc\":10:8))\n"},
   282  {"type":"Text","value":"  "},
   283  {"type":"NameVariable","value":"%2"},
   284  {"type":"Text","value":" "},
   285  {"type":"Punctuation","value":"="},
   286  {"type":"Text","value":" "},
   287  {"type":"KeywordType","value":"constant"},
   288  {"type":"Text","value":" "},
   289  {"type":"LiteralNumber","value":"4"},
   290  {"type":"Text","value":" "},
   291  {"type":"Punctuation","value":":"},
   292  {"type":"Text","value":" "},
   293  {"type":"Keyword","value":"index"},
   294  {"type":"Text","value":" "},
   295  {"type":"KeywordType","value":"loc"},
   296  {"type":"Punctuation","value":"("},
   297  {"type":"Text","value":"callsite"},
   298  {"type":"Punctuation","value":"("},
   299  {"type":"LiteralString","value":"\"foo\""},
   300  {"type":"Text","value":" at "},
   301  {"type":"LiteralString","value":"\"mysource.cc\""},
   302  {"type":"Punctuation","value":":"},
   303  {"type":"LiteralNumber","value":"10"},
   304  {"type":"Punctuation","value":":"},
   305  {"type":"LiteralNumber","value":"8"},
   306  {"type":"Punctuation","value":"))"},
   307  {"type":"Text","value":"\n\n  affine"},
   308  {"type":"Punctuation","value":"."},
   309  {"type":"Text","value":"for "},
   310  {"type":"NameVariable","value":"%i0"},
   311  {"type":"Text","value":" "},
   312  {"type":"Punctuation","value":"="},
   313  {"type":"Text","value":" "},
   314  {"type":"LiteralNumber","value":"0"},
   315  {"type":"Text","value":" to "},
   316  {"type":"LiteralNumber","value":"8"},
   317  {"type":"Text","value":" "},
   318  {"type":"Punctuation","value":"{"},
   319  {"type":"Text","value":"\n  "},
   320  {"type":"Punctuation","value":"}"},
   321  {"type":"Text","value":" "},
   322  {"type":"KeywordType","value":"loc"},
   323  {"type":"Punctuation","value":"("},
   324  {"type":"Text","value":"fused"},
   325  {"type":"Punctuation","value":"["},
   326  {"type":"LiteralString","value":"\"foo\""},
   327  {"type":"Punctuation","value":","},
   328  {"type":"Text","value":" "},
   329  {"type":"LiteralString","value":"\"mysource.cc\""},
   330  {"type":"Punctuation","value":":"},
   331  {"type":"LiteralNumber","value":"10"},
   332  {"type":"Punctuation","value":":"},
   333  {"type":"LiteralNumber","value":"8"},
   334  {"type":"Punctuation","value":"])"},
   335  {"type":"Text","value":"\n\n  affine"},
   336  {"type":"Punctuation","value":"."},
   337  {"type":"Text","value":"if "},
   338  {"type":"NameVariable","value":"#set0"},
   339  {"type":"Punctuation","value":"("},
   340  {"type":"NameVariable","value":"%2"},
   341  {"type":"Punctuation","value":")"},
   342  {"type":"Text","value":" "},
   343  {"type":"Punctuation","value":"{"},
   344  {"type":"Text","value":"\n  "},
   345  {"type":"Punctuation","value":"}"},
   346  {"type":"Text","value":" "},
   347  {"type":"KeywordType","value":"loc"},
   348  {"type":"Punctuation","value":"("},
   349  {"type":"Text","value":"fused"},
   350  {"type":"Punctuation","value":"\u003c"},
   351  {"type":"LiteralString","value":"\"myPass\""},
   352  {"type":"Punctuation","value":"\u003e["},
   353  {"type":"LiteralString","value":"\"foo\""},
   354  {"type":"Punctuation","value":","},
   355  {"type":"Text","value":" "},
   356  {"type":"LiteralString","value":"\"foo2\""},
   357  {"type":"Punctuation","value":"])"},
   358  {"type":"Text","value":"\n\n  "},
   359  {"type":"KeywordType","value":"return"},
   360  {"type":"Text","value":" "},
   361  {"type":"NameVariable","value":"%1"},
   362  {"type":"Text","value":" "},
   363  {"type":"Punctuation","value":":"},
   364  {"type":"Text","value":" "},
   365  {"type":"Keyword","value":"i32"},
   366  {"type":"Text","value":" "},
   367  {"type":"KeywordType","value":"loc"},
   368  {"type":"Punctuation","value":"("},
   369  {"type":"Text","value":"unknown"},
   370  {"type":"Punctuation","value":")"},
   371  {"type":"Text","value":"\n"},
   372  {"type":"Punctuation","value":"}"},
   373  {"type":"Text","value":"\n\n"},
   374  {"type":"KeywordType","value":"func"},
   375  {"type":"Text","value":" "},
   376  {"type":"NameFunction","value":"@simple"},
   377  {"type":"Punctuation","value":"("},
   378  {"type":"Keyword","value":"i64"},
   379  {"type":"Punctuation","value":","},
   380  {"type":"Text","value":" "},
   381  {"type":"Keyword","value":"i1"},
   382  {"type":"Punctuation","value":")"},
   383  {"type":"Text","value":" "},
   384  {"type":"Punctuation","value":"-\u003e"},
   385  {"type":"Text","value":" "},
   386  {"type":"Keyword","value":"i64"},
   387  {"type":"Text","value":" "},
   388  {"type":"Punctuation","value":"{"},
   389  {"type":"Text","value":"\n"},
   390  {"type":"NameLabel","value":"^bb0"},
   391  {"type":"Punctuation","value":"("},
   392  {"type":"NameVariable","value":"%a"},
   393  {"type":"Punctuation","value":":"},
   394  {"type":"Text","value":" "},
   395  {"type":"Keyword","value":"i64"},
   396  {"type":"Punctuation","value":","},
   397  {"type":"Text","value":" "},
   398  {"type":"NameVariable","value":"%cond"},
   399  {"type":"Punctuation","value":":"},
   400  {"type":"Text","value":" "},
   401  {"type":"Keyword","value":"i1"},
   402  {"type":"Punctuation","value":"):"},
   403  {"type":"Text","value":" "},
   404  {"type":"Comment","value":"// Code dominated by ^bb0 may refer to %a\n"},
   405  {"type":"Text","value":"  cond_br "},
   406  {"type":"NameVariable","value":"%cond"},
   407  {"type":"Punctuation","value":","},
   408  {"type":"Text","value":" "},
   409  {"type":"NameLabel","value":"^bb1"},
   410  {"type":"Punctuation","value":","},
   411  {"type":"Text","value":" "},
   412  {"type":"NameLabel","value":"^bb2\n\n^bb1"},
   413  {"type":"Punctuation","value":":"},
   414  {"type":"Text","value":"\n  br "},
   415  {"type":"NameLabel","value":"^bb3"},
   416  {"type":"Punctuation","value":"("},
   417  {"type":"NameVariable","value":"%a"},
   418  {"type":"Punctuation","value":":"},
   419  {"type":"Text","value":" "},
   420  {"type":"Keyword","value":"i64"},
   421  {"type":"Punctuation","value":")"},
   422  {"type":"Text","value":"    "},
   423  {"type":"Comment","value":"// Branch passes %a as the argument\n"},
   424  {"type":"Text","value":"\n"},
   425  {"type":"NameLabel","value":"^bb2"},
   426  {"type":"Punctuation","value":":"},
   427  {"type":"Text","value":"\n  "},
   428  {"type":"NameVariable","value":"%b"},
   429  {"type":"Text","value":" "},
   430  {"type":"Punctuation","value":"="},
   431  {"type":"Text","value":" addi "},
   432  {"type":"NameVariable","value":"%a"},
   433  {"type":"Punctuation","value":","},
   434  {"type":"Text","value":" "},
   435  {"type":"NameVariable","value":"%a"},
   436  {"type":"Text","value":" "},
   437  {"type":"Punctuation","value":":"},
   438  {"type":"Text","value":" "},
   439  {"type":"Keyword","value":"i64"},
   440  {"type":"Text","value":"\n  br "},
   441  {"type":"NameLabel","value":"^bb3"},
   442  {"type":"Punctuation","value":"("},
   443  {"type":"NameVariable","value":"%b"},
   444  {"type":"Punctuation","value":":"},
   445  {"type":"Text","value":" "},
   446  {"type":"Keyword","value":"i64"},
   447  {"type":"Punctuation","value":")"},
   448  {"type":"Text","value":"    "},
   449  {"type":"Comment","value":"// Branch passes %b as the argument\n"},
   450  {"type":"Text","value":"\n"},
   451  {"type":"Comment","value":"// ^bb3 receives an argument, named %c, from predecessors\n// and passes it on to bb4 twice.\n"},
   452  {"type":"NameLabel","value":"^bb3"},
   453  {"type":"Punctuation","value":"("},
   454  {"type":"NameVariable","value":"%c"},
   455  {"type":"Punctuation","value":":"},
   456  {"type":"Text","value":" "},
   457  {"type":"Keyword","value":"i64"},
   458  {"type":"Punctuation","value":"):"},
   459  {"type":"Text","value":"\n  br "},
   460  {"type":"NameLabel","value":"^bb4"},
   461  {"type":"Punctuation","value":"("},
   462  {"type":"NameVariable","value":"%c"},
   463  {"type":"Punctuation","value":","},
   464  {"type":"Text","value":" "},
   465  {"type":"NameVariable","value":"%c"},
   466  {"type":"Text","value":" "},
   467  {"type":"Punctuation","value":":"},
   468  {"type":"Text","value":" "},
   469  {"type":"Keyword","value":"i64"},
   470  {"type":"Punctuation","value":","},
   471  {"type":"Text","value":" "},
   472  {"type":"Keyword","value":"i64"},
   473  {"type":"Punctuation","value":")"},
   474  {"type":"Text","value":"\n\n"},
   475  {"type":"NameLabel","value":"^bb4"},
   476  {"type":"Punctuation","value":"("},
   477  {"type":"NameVariable","value":"%d"},
   478  {"type":"Text","value":" "},
   479  {"type":"Punctuation","value":":"},
   480  {"type":"Text","value":" "},
   481  {"type":"Keyword","value":"i64"},
   482  {"type":"Punctuation","value":","},
   483  {"type":"Text","value":" "},
   484  {"type":"NameVariable","value":"%e"},
   485  {"type":"Text","value":" "},
   486  {"type":"Punctuation","value":":"},
   487  {"type":"Text","value":" "},
   488  {"type":"Keyword","value":"i64"},
   489  {"type":"Punctuation","value":"):"},
   490  {"type":"Text","value":"\n  "},
   491  {"type":"NameVariable","value":"%0"},
   492  {"type":"Text","value":" "},
   493  {"type":"Punctuation","value":"="},
   494  {"type":"Text","value":" addi "},
   495  {"type":"NameVariable","value":"%d"},
   496  {"type":"Punctuation","value":","},
   497  {"type":"Text","value":" "},
   498  {"type":"NameVariable","value":"%e"},
   499  {"type":"Text","value":" "},
   500  {"type":"Punctuation","value":":"},
   501  {"type":"Text","value":" "},
   502  {"type":"Keyword","value":"i64"},
   503  {"type":"Text","value":"\n  "},
   504  {"type":"KeywordType","value":"return"},
   505  {"type":"Text","value":" "},
   506  {"type":"NameVariable","value":"%0"},
   507  {"type":"Text","value":" "},
   508  {"type":"Punctuation","value":":"},
   509  {"type":"Text","value":" "},
   510  {"type":"Keyword","value":"i64"},
   511  {"type":"Text","value":"\n"},
   512  {"type":"Punctuation","value":"}"},
   513  {"type":"Text","value":"\n\n"},
   514  {"type":"Comment","value":"// CHECK-LABEL: func @func_with_ops(%arg0: f32) {\n"},
   515  {"type":"KeywordType","value":"func"},
   516  {"type":"Text","value":" "},
   517  {"type":"NameFunction","value":"@func_with_ops"},
   518  {"type":"Punctuation","value":"("},
   519  {"type":"Keyword","value":"f32"},
   520  {"type":"Punctuation","value":")"},
   521  {"type":"Text","value":" "},
   522  {"type":"Punctuation","value":"{"},
   523  {"type":"Text","value":"\n"},
   524  {"type":"NameLabel","value":"^bb0"},
   525  {"type":"Punctuation","value":"("},
   526  {"type":"NameVariable","value":"%a"},
   527  {"type":"Text","value":" "},
   528  {"type":"Punctuation","value":":"},
   529  {"type":"Text","value":" "},
   530  {"type":"Keyword","value":"f32"},
   531  {"type":"Punctuation","value":"):"},
   532  {"type":"Text","value":"\n  "},
   533  {"type":"NameVariable","value":"%t"},
   534  {"type":"Text","value":" "},
   535  {"type":"Punctuation","value":"="},
   536  {"type":"Text","value":" "},
   537  {"type":"LiteralString","value":"\"getTensor\""},
   538  {"type":"Punctuation","value":"()"},
   539  {"type":"Text","value":" "},
   540  {"type":"Punctuation","value":":"},
   541  {"type":"Text","value":" "},
   542  {"type":"Punctuation","value":"()"},
   543  {"type":"Text","value":" "},
   544  {"type":"Punctuation","value":"-\u003e"},
   545  {"type":"Text","value":" "},
   546  {"type":"KeywordType","value":"tensor"},
   547  {"type":"Punctuation","value":"\u003c"},
   548  {"type":"LiteralNumber","value":"4x4x?x"},
   549  {"type":"Keyword","value":"f32"},
   550  {"type":"Punctuation","value":"\u003e"},
   551  {"type":"Text","value":"\n  "},
   552  {"type":"NameVariable","value":"%t2"},
   553  {"type":"Text","value":" "},
   554  {"type":"Punctuation","value":"="},
   555  {"type":"Text","value":" "},
   556  {"type":"LiteralString","value":"\"std.dim\""},
   557  {"type":"Punctuation","value":"("},
   558  {"type":"NameVariable","value":"%t"},
   559  {"type":"Punctuation","value":"){"},
   560  {"type":"NameLabel","value":"index ="},
   561  {"type":"Text","value":" "},
   562  {"type":"LiteralNumber","value":"2"},
   563  {"type":"Punctuation","value":"}"},
   564  {"type":"Text","value":" "},
   565  {"type":"Punctuation","value":":"},
   566  {"type":"Text","value":" "},
   567  {"type":"Punctuation","value":"("},
   568  {"type":"KeywordType","value":"tensor"},
   569  {"type":"Punctuation","value":"\u003c"},
   570  {"type":"LiteralNumber","value":"4x4x?x"},
   571  {"type":"Keyword","value":"f32"},
   572  {"type":"Punctuation","value":"\u003e)"},
   573  {"type":"Text","value":" "},
   574  {"type":"Punctuation","value":"-\u003e"},
   575  {"type":"Text","value":" "},
   576  {"type":"Keyword","value":"index"},
   577  {"type":"Text","value":"\n\n  "},
   578  {"type":"NameVariable","value":"%x"},
   579  {"type":"Text","value":" "},
   580  {"type":"Punctuation","value":"="},
   581  {"type":"Text","value":" "},
   582  {"type":"LiteralString","value":"\"std.addf\""},
   583  {"type":"Punctuation","value":"("},
   584  {"type":"NameVariable","value":"%a"},
   585  {"type":"Punctuation","value":","},
   586  {"type":"Text","value":" "},
   587  {"type":"NameVariable","value":"%a"},
   588  {"type":"Punctuation","value":")"},
   589  {"type":"Text","value":" "},
   590  {"type":"Punctuation","value":":"},
   591  {"type":"Text","value":" "},
   592  {"type":"Punctuation","value":"("},
   593  {"type":"Keyword","value":"f32"},
   594  {"type":"Punctuation","value":","},
   595  {"type":"Keyword","value":"f32"},
   596  {"type":"Punctuation","value":")"},
   597  {"type":"Text","value":" "},
   598  {"type":"Punctuation","value":"-\u003e"},
   599  {"type":"Text","value":" "},
   600  {"type":"Punctuation","value":"("},
   601  {"type":"Keyword","value":"f32"},
   602  {"type":"Punctuation","value":")"},
   603  {"type":"Text","value":" "},
   604  {"type":"Comment","value":"// help\n"},
   605  {"type":"Text","value":"\n  "},
   606  {"type":"KeywordType","value":"return"},
   607  {"type":"Text","value":"\n"},
   608  {"type":"Punctuation","value":"}"},
   609  {"type":"Text","value":"\n\n"},
   610  {"type":"KeywordType","value":"func"},
   611  {"type":"Text","value":" "},
   612  {"type":"NameFunction","value":"@multiblock"},
   613  {"type":"Punctuation","value":"()"},
   614  {"type":"Text","value":" "},
   615  {"type":"Punctuation","value":"{"},
   616  {"type":"Text","value":"\n  "},
   617  {"type":"KeywordType","value":"return"},
   618  {"type":"Text","value":"     "},
   619  {"type":"Comment","value":"// CHECK:   return\n"},
   620  {"type":"NameLabel","value":"^bb1"},
   621  {"type":"Punctuation","value":":"},
   622  {"type":"Text","value":"         "},
   623  {"type":"Comment","value":"// CHECK: ^bb1:   // no predecessors\n"},
   624  {"type":"Text","value":"  br "},
   625  {"type":"NameLabel","value":"^bb4     "},
   626  {"type":"Comment","value":"// CHECK:   br ^bb3\n"},
   627  {"type":"NameLabel","value":"^bb2"},
   628  {"type":"Punctuation","value":":"},
   629  {"type":"Text","value":"         "},
   630  {"type":"Comment","value":"// CHECK: ^bb2:   // pred: ^bb2\n"},
   631  {"type":"Text","value":"  br "},
   632  {"type":"NameLabel","value":"^bb2     "},
   633  {"type":"Comment","value":"// CHECK:   br ^bb2\n"},
   634  {"type":"NameLabel","value":"^bb4"},
   635  {"type":"Punctuation","value":":"},
   636  {"type":"Text","value":"         "},
   637  {"type":"Comment","value":"// CHECK: ^bb3:   // pred: ^bb1\n"},
   638  {"type":"Text","value":"  "},
   639  {"type":"KeywordType","value":"return"},
   640  {"type":"Text","value":"     "},
   641  {"type":"Comment","value":"// CHECK:   return\n"},
   642  {"type":"Punctuation","value":"}"},
   643  {"type":"Text","value":"\n\n"},
   644  {"type":"KeywordType","value":"func"},
   645  {"type":"Text","value":" "},
   646  {"type":"NameFunction","value":"@dialect_attribute_with_type"},
   647  {"type":"Punctuation","value":"()"},
   648  {"type":"Text","value":" "},
   649  {"type":"Punctuation","value":"{"},
   650  {"type":"Text","value":"\n  "},
   651  {"type":"LiteralString","value":"\"foo.unknown_op\""},
   652  {"type":"Punctuation","value":"()"},
   653  {"type":"Text","value":" "},
   654  {"type":"Punctuation","value":"{"},
   655  {"type":"NameLabel","value":"foo ="},
   656  {"type":"Text","value":" "},
   657  {"type":"NameVariable","value":"#foo.attr"},
   658  {"type":"Text","value":" "},
   659  {"type":"Punctuation","value":":"},
   660  {"type":"Text","value":" "},
   661  {"type":"Keyword","value":"i32"},
   662  {"type":"Punctuation","value":"}"},
   663  {"type":"Text","value":" "},
   664  {"type":"Punctuation","value":":"},
   665  {"type":"Text","value":" "},
   666  {"type":"Punctuation","value":"()"},
   667  {"type":"Text","value":" "},
   668  {"type":"Punctuation","value":"-\u003e"},
   669  {"type":"Text","value":" "},
   670  {"type":"Punctuation","value":"()"},
   671  {"type":"Text","value":"\n"},
   672  {"type":"Punctuation","value":"}"},
   673  {"type":"Text","value":"\n\n"},
   674  {"type":"KeywordType","value":"func"},
   675  {"type":"Text","value":" "},
   676  {"type":"NameFunction","value":"@inline_notation"},
   677  {"type":"Punctuation","value":"()"},
   678  {"type":"Text","value":" "},
   679  {"type":"Punctuation","value":"-\u003e"},
   680  {"type":"Text","value":" "},
   681  {"type":"Keyword","value":"i32"},
   682  {"type":"Text","value":" "},
   683  {"type":"Punctuation","value":"{"},
   684  {"type":"Text","value":"\n  "},
   685  {"type":"NameVariable","value":"%1"},
   686  {"type":"Text","value":" "},
   687  {"type":"Punctuation","value":"="},
   688  {"type":"Text","value":" "},
   689  {"type":"LiteralString","value":"\"foo\""},
   690  {"type":"Punctuation","value":"()"},
   691  {"type":"Text","value":" "},
   692  {"type":"Punctuation","value":":"},
   693  {"type":"Text","value":" "},
   694  {"type":"Punctuation","value":"()"},
   695  {"type":"Text","value":" "},
   696  {"type":"Punctuation","value":"-\u003e"},
   697  {"type":"Text","value":" "},
   698  {"type":"Keyword","value":"i32"},
   699  {"type":"Text","value":" "},
   700  {"type":"KeywordType","value":"loc"},
   701  {"type":"Punctuation","value":"("},
   702  {"type":"LiteralString","value":"\"foo\""},
   703  {"type":"Punctuation","value":")"},
   704  {"type":"Text","value":"\n\n  "},
   705  {"type":"NameVariable","value":"%2"},
   706  {"type":"Text","value":" "},
   707  {"type":"Punctuation","value":"="},
   708  {"type":"Text","value":" "},
   709  {"type":"KeywordType","value":"constant"},
   710  {"type":"Text","value":" "},
   711  {"type":"LiteralNumber","value":"4"},
   712  {"type":"Text","value":" "},
   713  {"type":"Punctuation","value":":"},
   714  {"type":"Text","value":" "},
   715  {"type":"Keyword","value":"index"},
   716  {"type":"Text","value":" "},
   717  {"type":"KeywordType","value":"loc"},
   718  {"type":"Punctuation","value":"("},
   719  {"type":"Text","value":"callsite"},
   720  {"type":"Punctuation","value":"("},
   721  {"type":"LiteralString","value":"\"foo\""},
   722  {"type":"Text","value":" at "},
   723  {"type":"LiteralString","value":"\"mysource.cc\""},
   724  {"type":"Punctuation","value":":"},
   725  {"type":"LiteralNumber","value":"10"},
   726  {"type":"Punctuation","value":":"},
   727  {"type":"LiteralNumber","value":"8"},
   728  {"type":"Punctuation","value":"))"},
   729  {"type":"Text","value":"\n\n  affine"},
   730  {"type":"Punctuation","value":"."},
   731  {"type":"Text","value":"for "},
   732  {"type":"NameVariable","value":"%i0"},
   733  {"type":"Text","value":" "},
   734  {"type":"Punctuation","value":"="},
   735  {"type":"Text","value":" "},
   736  {"type":"LiteralNumber","value":"0"},
   737  {"type":"Text","value":" to "},
   738  {"type":"LiteralNumber","value":"8"},
   739  {"type":"Text","value":" "},
   740  {"type":"Punctuation","value":"{"},
   741  {"type":"Text","value":"\n  "},
   742  {"type":"Punctuation","value":"}"},
   743  {"type":"Text","value":" "},
   744  {"type":"KeywordType","value":"loc"},
   745  {"type":"Punctuation","value":"("},
   746  {"type":"Text","value":"fused"},
   747  {"type":"Punctuation","value":"["},
   748  {"type":"LiteralString","value":"\"foo\""},
   749  {"type":"Punctuation","value":","},
   750  {"type":"Text","value":" "},
   751  {"type":"LiteralString","value":"\"mysource.cc\""},
   752  {"type":"Punctuation","value":":"},
   753  {"type":"LiteralNumber","value":"10"},
   754  {"type":"Punctuation","value":":"},
   755  {"type":"LiteralNumber","value":"8"},
   756  {"type":"Punctuation","value":"])"},
   757  {"type":"Text","value":"\n\n  affine"},
   758  {"type":"Punctuation","value":"."},
   759  {"type":"Text","value":"if "},
   760  {"type":"NameVariable","value":"#set0"},
   761  {"type":"Punctuation","value":"("},
   762  {"type":"NameVariable","value":"%2"},
   763  {"type":"Punctuation","value":")"},
   764  {"type":"Text","value":" "},
   765  {"type":"Punctuation","value":"{"},
   766  {"type":"Text","value":"\n  "},
   767  {"type":"Punctuation","value":"}"},
   768  {"type":"Text","value":" "},
   769  {"type":"KeywordType","value":"loc"},
   770  {"type":"Punctuation","value":"("},
   771  {"type":"Text","value":"fused"},
   772  {"type":"Punctuation","value":"\u003c"},
   773  {"type":"LiteralString","value":"\"myPass\""},
   774  {"type":"Punctuation","value":"\u003e["},
   775  {"type":"LiteralString","value":"\"foo\""},
   776  {"type":"Punctuation","value":","},
   777  {"type":"Text","value":" "},
   778  {"type":"LiteralString","value":"\"foo2\""},
   779  {"type":"Punctuation","value":"])"},
   780  {"type":"Text","value":"\n\n  "},
   781  {"type":"KeywordType","value":"return"},
   782  {"type":"Text","value":" "},
   783  {"type":"NameVariable","value":"%1"},
   784  {"type":"Text","value":" "},
   785  {"type":"Punctuation","value":":"},
   786  {"type":"Text","value":" "},
   787  {"type":"Keyword","value":"i32"},
   788  {"type":"Text","value":" "},
   789  {"type":"KeywordType","value":"loc"},
   790  {"type":"Punctuation","value":"("},
   791  {"type":"Text","value":"unknown"},
   792  {"type":"Punctuation","value":")"},
   793  {"type":"Text","value":"\n"},
   794  {"type":"Punctuation","value":"}"},
   795  {"type":"Text","value":"\n\n"}
   796]

View as plain text