3399 lines · plain
1================================================================================2linalg.map without ins3================================================================================4func.func @map_no_inputs(%init: tensor<64xf32>) -> tensor<64xf32> {5 %add = linalg.map6 outs(%init:tensor<64xf32>)7 () {8 %0 = arith.constant 0.0: f329 linalg.yield %0: f3210 }11 func.return %add : tensor<64xf32>12}13--------------------------------------------------------------------------------14 15(toplevel16 (operation17 (custom_operation18 (func_dialect19 (symbol_ref_id)20 (func_arg_list21 (value_use)22 (type23 (builtin_type24 (tensor_type25 (dim_list26 (float_type))))))27 (func_return28 (type_list_attr_parens29 (type30 (builtin_type31 (tensor_type32 (dim_list33 (float_type)))))))34 (region35 (entry_block36 (operation37 (op_result38 (value_use))39 (custom_operation40 (linalg_dialect41 (value_use)42 (type43 (builtin_type44 (tensor_type45 (dim_list46 (float_type)))))47 (block_arg_list)48 (region49 (entry_block50 (operation51 (op_result52 (value_use))53 (custom_operation54 (arith_dialect55 (float_literal)56 (type57 (builtin_type58 (float_type))))))59 (operation60 (custom_operation61 (linalg_dialect62 (value_use)63 (type64 (builtin_type65 (float_type)))))))))))66 (operation67 (custom_operation68 (func_dialect69 (value_use)70 (type71 (builtin_type72 (tensor_type73 (dim_list74 (float_type))))))))))))))75 76================================================================================77linalg.map with ins and outs78================================================================================79func.func @map_binary_memref(%lhs: memref<64xf32>, %rhs: memref<64xf32>,80 %init: memref<64xf32>) {81 linalg.map82 ins(%lhs, %rhs: memref<64xf32>, memref<64xf32>)83 outs(%init:memref<64xf32>)84 (%lhs_elem: f32, %rhs_elem: f32) {85 %0 = arith.addf %lhs_elem, %rhs_elem: f3286 linalg.yield %0: f3287 }88 func.return89}90--------------------------------------------------------------------------------91 92(toplevel93 (operation94 (custom_operation95 (func_dialect96 (symbol_ref_id)97 (func_arg_list98 (value_use)99 (type100 (builtin_type101 (memref_type102 (dim_list103 (float_type)))))104 (value_use)105 (type106 (builtin_type107 (memref_type108 (dim_list109 (float_type)))))110 (value_use)111 (type112 (builtin_type113 (memref_type114 (dim_list115 (float_type))))))116 (region117 (entry_block118 (operation119 (custom_operation120 (linalg_dialect121 (value_use)122 (value_use)123 (type124 (builtin_type125 (memref_type126 (dim_list127 (float_type)))))128 (type129 (builtin_type130 (memref_type131 (dim_list132 (float_type)))))133 (value_use)134 (type135 (builtin_type136 (memref_type137 (dim_list138 (float_type)))))139 (block_arg_list140 (value_use)141 (type142 (builtin_type143 (float_type)))144 (value_use)145 (type146 (builtin_type147 (float_type))))148 (region149 (entry_block150 (operation151 (op_result152 (value_use))153 (custom_operation154 (arith_dialect155 (value_use)156 (value_use)157 (type158 (builtin_type159 (float_type))))))160 (operation161 (custom_operation162 (linalg_dialect163 (value_use)164 (type165 (builtin_type166 (float_type)))))))))))167 (operation168 (custom_operation169 (func_dialect)))))))))170 171================================================================================172linalg.generic with attribute dictionary173================================================================================174func.func @gather_like(175 %arg0 : tensor<?x?xf32> {bufferization.writable = false},176 %arg1 : tensor<?xi32> {bufferization.writable = false},177 %arg2 : tensor<?x?xf32> {bufferization.writable = true})178 -> tensor<?x?xf32>179{180 %0 = linalg.generic {181 indexing_maps = [affine_map<(d0, d1) -> (d0)>,182 affine_map<(d0, d1) -> (d0, d1)>],183 iterator_types = ["parallel", "parallel"]}184 ins(%arg1 : tensor<?xi32>) outs(%arg2 : tensor<?x?xf32>) {185 ^bb0(%arg3: i32, %arg4 : f32):186 %iv1 = linalg.index 1 : index187 %1 = arith.index_cast %arg3: i32 to index188 %2 = tensor.extract %arg0[%1, %iv1] : tensor<?x?xf32>189 linalg.yield %2 : f32190 } -> tensor<?x?xf32>191 return %0 : tensor<?x?xf32>192}193--------------------------------------------------------------------------------194 195(toplevel196 (operation197 (custom_operation198 (func_dialect199 (symbol_ref_id)200 (func_arg_list201 (value_use)202 (type203 (builtin_type204 (tensor_type205 (dim_list206 (float_type)))))207 (attribute208 (dictionary_attribute209 (attribute_entry210 (bare_id)211 (attribute_value212 (bool_literal)))))213 (value_use)214 (type215 (builtin_type216 (tensor_type217 (dim_list218 (integer_type)))))219 (attribute220 (dictionary_attribute221 (attribute_entry222 (bare_id)223 (attribute_value224 (bool_literal)))))225 (value_use)226 (type227 (builtin_type228 (tensor_type229 (dim_list230 (float_type)))))231 (attribute232 (dictionary_attribute233 (attribute_entry234 (bare_id)235 (attribute_value236 (bool_literal))))))237 (func_return238 (type_list_attr_parens239 (type240 (builtin_type241 (tensor_type242 (dim_list243 (float_type)))))))244 (region245 (entry_block246 (operation247 (op_result248 (value_use))249 (custom_operation250 (linalg_dialect251 (attribute252 (dictionary_attribute253 (attribute_entry254 (bare_id)255 (attribute_value256 (builtin_attribute257 (affine_map258 (bare_id)259 (bare_id)260 (bare_id)))261 (builtin_attribute262 (affine_map263 (bare_id)264 (bare_id)265 (bare_id)266 (bare_id)))))267 (attribute_entry268 (bare_id)269 (attribute_value270 (string_literal)271 (string_literal)))))272 (value_use)273 (type274 (builtin_type275 (tensor_type276 (dim_list277 (integer_type)))))278 (value_use)279 (type280 (builtin_type281 (tensor_type282 (dim_list283 (float_type)))))284 (region285 (block286 (block_label287 (caret_id)288 (block_arg_list289 (value_use)290 (type291 (builtin_type292 (integer_type)))293 (value_use)294 (type295 (builtin_type296 (float_type)))))297 (operation298 (op_result299 (value_use))300 (custom_operation301 (linalg_dialect302 (integer_literal)303 (type304 (builtin_type305 (index_type))))))306 (operation307 (op_result308 (value_use))309 (custom_operation310 (arith_dialect311 (value_use)312 (type313 (builtin_type314 (integer_type)))315 (type316 (builtin_type317 (index_type))))))318 (operation319 (op_result320 (value_use))321 (custom_operation322 (tensor_dialect323 (value_use)324 (value_use)325 (value_use)326 (type327 (builtin_type328 (tensor_type329 (dim_list330 (float_type))))))))331 (operation332 (custom_operation333 (linalg_dialect334 (value_use)335 (type336 (builtin_type337 (float_type))))))))338 (type339 (builtin_type340 (tensor_type341 (dim_list342 (float_type))))))))343 (operation344 (custom_operation345 (func_dialect346 (value_use)347 (type348 (builtin_type349 (tensor_type350 (dim_list351 (float_type))))))))))))))352 353================================================================================354tensor.collapse_shape and tensor.expand_shape without reassocation355================================================================================356func.func @tensor_reshape_zero_dim(%arg0 : tensor<1x1xf32>, %arg1 : tensor<f32>)357 -> (tensor<f32>, tensor<1x1xf32>) {358 %0 = tensor.collapse_shape %arg0 [] : tensor<1x1xf32> into tensor<f32>359 %1 = tensor.expand_shape %0 [] : tensor<f32> into tensor<1x1xf32>360 return %0, %1 : tensor<f32>, tensor<1x1xf32>361}362--------------------------------------------------------------------------------363 364(toplevel365 (operation366 (custom_operation367 (func_dialect368 (symbol_ref_id)369 (func_arg_list370 (value_use)371 (type372 (builtin_type373 (tensor_type374 (dim_list375 (float_type)))))376 (value_use)377 (type378 (builtin_type379 (tensor_type380 (dim_list381 (float_type))))))382 (func_return383 (type_list_attr_parens384 (type385 (builtin_type386 (tensor_type387 (dim_list388 (float_type)))))389 (type390 (builtin_type391 (tensor_type392 (dim_list393 (float_type)))))))394 (region395 (entry_block396 (operation397 (op_result398 (value_use))399 (custom_operation400 (tensor_dialect401 (value_use)402 (nested_idx_list)403 (type404 (builtin_type405 (tensor_type406 (dim_list407 (float_type)))))408 (type409 (builtin_type410 (tensor_type411 (dim_list412 (float_type))))))))413 (operation414 (op_result415 (value_use))416 (custom_operation417 (tensor_dialect418 (value_use)419 (nested_idx_list)420 (type421 (builtin_type422 (tensor_type423 (dim_list424 (float_type)))))425 (type426 (builtin_type427 (tensor_type428 (dim_list429 (float_type))))))))430 (operation431 (custom_operation432 (func_dialect433 (value_use)434 (value_use)435 (type436 (builtin_type437 (tensor_type438 (dim_list439 (float_type)))))440 (type441 (builtin_type442 (tensor_type443 (dim_list444 (float_type))))))))))))))445 446================================================================================447tensor.collapse_shape with reassocation448================================================================================449func.func @legal_collapsing_reshape_dynamic_tensor450 (%arg0: tensor<?x?x?x4x?xf32>) -> tensor<?x?x?xf32>451{452 %0 = tensor.collapse_shape %arg0 [[0], [1], [2, 3, 4]] :453 tensor<?x?x?x4x?xf32> into tensor<?x?x?xf32>454 return %0 : tensor<?x?x?xf32>455}456--------------------------------------------------------------------------------457 458(toplevel459 (operation460 (custom_operation461 (func_dialect462 (symbol_ref_id)463 (func_arg_list464 (value_use)465 (type466 (builtin_type467 (tensor_type468 (dim_list469 (float_type))))))470 (func_return471 (type_list_attr_parens472 (type473 (builtin_type474 (tensor_type475 (dim_list476 (float_type)))))))477 (region478 (entry_block479 (operation480 (op_result481 (value_use))482 (custom_operation483 (tensor_dialect484 (value_use)485 (nested_idx_list486 (nested_idx_list487 (integer_literal))488 (nested_idx_list489 (integer_literal))490 (nested_idx_list491 (integer_literal)492 (integer_literal)493 (integer_literal)))494 (type495 (builtin_type496 (tensor_type497 (dim_list498 (float_type)))))499 (type500 (builtin_type501 (tensor_type502 (dim_list503 (float_type))))))))504 (operation505 (custom_operation506 (func_dialect507 (value_use)508 (type509 (builtin_type510 (tensor_type511 (dim_list512 (float_type))))))))))))))513 514================================================================================515tensor.gather and tensor.scatter516================================================================================517func.func @gather_scatter(%dest : tensor<4x5x6xf32>, %indices: tensor<1x3x2xindex>,518 %indices_i32: tensor<1x3x2xi32>) {519 %gathered = tensor.gather %dest[%indices_i32] gather_dims([1, 2]) unique:520 (tensor<4x5x6xf32>, tensor<1x3x2xi32>) -> tensor<1x3x4x1x1xf32>521 %rank_reduced_gathered = tensor.gather %dest[%indices] gather_dims([1, 2]) unique:522 (tensor<4x5x6xf32>, tensor<1x3x2xindex>) -> tensor<1x3x4xf32>523 524 %scattered = tensor.scatter %gathered into %dest[%indices]525 scatter_dims([1, 2]) unique:526 (tensor<1x3x4x1x1xf32>, tensor<4x5x6xf32>, tensor<1x3x2xindex>) -> tensor<4x5x6xf32>527 %rank_reduced_scattered = tensor.scatter %rank_reduced_gathered into %dest[%indices_i32]528 scatter_dims([1, 2]) unique:529 (tensor<1x3x4xf32>, tensor<4x5x6xf32>, tensor<1x3x2xi32>) -> tensor<4x5x6xf32>530 return531}532--------------------------------------------------------------------------------533 534(toplevel535 (operation536 (custom_operation537 (func_dialect538 (symbol_ref_id)539 (func_arg_list540 (value_use)541 (type542 (builtin_type543 (tensor_type544 (dim_list545 (float_type)))))546 (value_use)547 (type548 (builtin_type549 (tensor_type550 (dim_list551 (index_type)))))552 (value_use)553 (type554 (builtin_type555 (tensor_type556 (dim_list557 (integer_type))))))558 (region559 (entry_block560 (operation561 (op_result562 (value_use))563 (custom_operation564 (tensor_dialect565 (value_use)566 (value_use)567 (gather_dims_attr568 (integer_literal)569 (integer_literal))570 (unique_attr)571 (function_type572 (type573 (builtin_type574 (tensor_type575 (dim_list576 (float_type)))))577 (type578 (builtin_type579 (tensor_type580 (dim_list581 (integer_type)))))582 (type583 (builtin_type584 (tensor_type585 (dim_list586 (float_type)))))))))587 (operation588 (op_result589 (value_use))590 (custom_operation591 (tensor_dialect592 (value_use)593 (value_use)594 (gather_dims_attr595 (integer_literal)596 (integer_literal))597 (unique_attr)598 (function_type599 (type600 (builtin_type601 (tensor_type602 (dim_list603 (float_type)))))604 (type605 (builtin_type606 (tensor_type607 (dim_list608 (index_type)))))609 (type610 (builtin_type611 (tensor_type612 (dim_list613 (float_type)))))))))614 (operation615 (op_result616 (value_use))617 (custom_operation618 (tensor_dialect619 (value_use)620 (value_use)621 (value_use)622 (scatter_dims_attr623 (integer_literal)624 (integer_literal))625 (unique_attr)626 (function_type627 (type628 (builtin_type629 (tensor_type630 (dim_list631 (float_type)))))632 (type633 (builtin_type634 (tensor_type635 (dim_list636 (float_type)))))637 (type638 (builtin_type639 (tensor_type640 (dim_list641 (index_type)))))642 (type643 (builtin_type644 (tensor_type645 (dim_list646 (float_type)))))))))647 (operation648 (op_result649 (value_use))650 (custom_operation651 (tensor_dialect652 (value_use)653 (value_use)654 (value_use)655 (scatter_dims_attr656 (integer_literal)657 (integer_literal))658 (unique_attr)659 (function_type660 (type661 (builtin_type662 (tensor_type663 (dim_list664 (float_type)))))665 (type666 (builtin_type667 (tensor_type668 (dim_list669 (float_type)))))670 (type671 (builtin_type672 (tensor_type673 (dim_list674 (integer_type)))))675 (type676 (builtin_type677 (tensor_type678 (dim_list679 (float_type)))))))))680 (operation681 (custom_operation682 (func_dialect)))))))))683 684================================================================================685tensor.extract_slice686================================================================================687func.func @slice(%t: tensor<8x16x4xf32>, %idx : index) {688 %c0 = arith.constant 0 : index689 %c1 = arith.constant 1 : index690 %1 = tensor.extract_slice %t[%c0, %c0, %c0][%idx, %idx, %idx][%c1, %c1, %c1]691 : tensor<8x16x4xf32> to tensor<?x?x?xf32>692 %2 = tensor.extract_slice %t[0, 2, 0][4, 4, 4][1, 1, 1]693 : tensor<8x16x4xf32> to tensor<4x4x4xf32>694 %3 = tensor.extract_slice %t[0, 2, 0][4, 1, 4][1, 1, 1]695 : tensor<8x16x4xf32> to tensor<4x4xf32>696 697 return698}699--------------------------------------------------------------------------------700 701(toplevel702 (operation703 (custom_operation704 (func_dialect705 (symbol_ref_id)706 (func_arg_list707 (value_use)708 (type709 (builtin_type710 (tensor_type711 (dim_list712 (float_type)))))713 (value_use)714 (type715 (builtin_type716 (index_type))))717 (region718 (entry_block719 (operation720 (op_result721 (value_use))722 (custom_operation723 (arith_dialect724 (integer_literal)725 (type726 (builtin_type727 (index_type))))))728 (operation729 (op_result730 (value_use))731 (custom_operation732 (arith_dialect733 (integer_literal)734 (type735 (builtin_type736 (index_type))))))737 (operation738 (op_result739 (value_use))740 (custom_operation741 (tensor_dialect742 (value_use)743 (value_use)744 (value_use)745 (value_use)746 (value_use)747 (value_use)748 (value_use)749 (value_use)750 (value_use)751 (value_use)752 (type753 (builtin_type754 (tensor_type755 (dim_list756 (float_type)))))757 (type758 (builtin_type759 (tensor_type760 (dim_list761 (float_type))))))))762 (operation763 (op_result764 (value_use))765 (custom_operation766 (tensor_dialect767 (value_use)768 (integer_literal)769 (integer_literal)770 (integer_literal)771 (integer_literal)772 (integer_literal)773 (integer_literal)774 (integer_literal)775 (integer_literal)776 (integer_literal)777 (type778 (builtin_type779 (tensor_type780 (dim_list781 (float_type)))))782 (type783 (builtin_type784 (tensor_type785 (dim_list786 (float_type))))))))787 (operation788 (op_result789 (value_use))790 (custom_operation791 (tensor_dialect792 (value_use)793 (integer_literal)794 (integer_literal)795 (integer_literal)796 (integer_literal)797 (integer_literal)798 (integer_literal)799 (integer_literal)800 (integer_literal)801 (integer_literal)802 (type803 (builtin_type804 (tensor_type805 (dim_list806 (float_type)))))807 (type808 (builtin_type809 (tensor_type810 (dim_list811 (float_type))))))))812 (operation813 (custom_operation814 (func_dialect)))))))))815 816================================================================================817tensor.insert_slice818================================================================================819func.func @insert_slice(820 %t: tensor<8x16x4xf32>,821 %td: tensor<8x?x4xf32>,822 %t2: tensor<16x32x8xf32>,823 %t3: tensor<4x4xf32>,824 %idx : index,825 %sz : index) {826 %c0 = arith.constant 0 : index827 %c1 = arith.constant 1 : index828 %1 = tensor.insert_slice %t into %t2[%c0, %c0, %c0][8, 16, 4][%c1, %c1, %c1]829 : tensor<8x16x4xf32> into tensor<16x32x8xf32>830 %2 = tensor.insert_slice %t into %t2[%c0, %idx, %c0][8, 16, 4][%c1, 1, %c1]831 : tensor<8x16x4xf32> into tensor<16x32x8xf32>832 %3 = tensor.insert_slice %t3 into %t[0, 2, 0][4, 1, 4][1, 1, 1]833 : tensor<4x4xf32> into tensor<8x16x4xf32>834 %4 = tensor.insert_slice %td into %t[0, %idx, 0][8, %sz, 4][1, 1, 1]835 : tensor<8x?x4xf32> into tensor<8x16x4xf32>836 837 return838}839--------------------------------------------------------------------------------840 841(toplevel842 (operation843 (custom_operation844 (func_dialect845 (symbol_ref_id)846 (func_arg_list847 (value_use)848 (type849 (builtin_type850 (tensor_type851 (dim_list852 (float_type)))))853 (value_use)854 (type855 (builtin_type856 (tensor_type857 (dim_list858 (float_type)))))859 (value_use)860 (type861 (builtin_type862 (tensor_type863 (dim_list864 (float_type)))))865 (value_use)866 (type867 (builtin_type868 (tensor_type869 (dim_list870 (float_type)))))871 (value_use)872 (type873 (builtin_type874 (index_type)))875 (value_use)876 (type877 (builtin_type878 (index_type))))879 (region880 (entry_block881 (operation882 (op_result883 (value_use))884 (custom_operation885 (arith_dialect886 (integer_literal)887 (type888 (builtin_type889 (index_type))))))890 (operation891 (op_result892 (value_use))893 (custom_operation894 (arith_dialect895 (integer_literal)896 (type897 (builtin_type898 (index_type))))))899 (operation900 (op_result901 (value_use))902 (custom_operation903 (tensor_dialect904 (value_use)905 (value_use)906 (value_use)907 (value_use)908 (value_use)909 (integer_literal)910 (integer_literal)911 (integer_literal)912 (value_use)913 (value_use)914 (value_use)915 (type916 (builtin_type917 (tensor_type918 (dim_list919 (float_type)))))920 (type921 (builtin_type922 (tensor_type923 (dim_list924 (float_type))))))))925 (operation926 (op_result927 (value_use))928 (custom_operation929 (tensor_dialect930 (value_use)931 (value_use)932 (value_use)933 (value_use)934 (value_use)935 (integer_literal)936 (integer_literal)937 (integer_literal)938 (value_use)939 (integer_literal)940 (value_use)941 (type942 (builtin_type943 (tensor_type944 (dim_list945 (float_type)))))946 (type947 (builtin_type948 (tensor_type949 (dim_list950 (float_type))))))))951 (operation952 (op_result953 (value_use))954 (custom_operation955 (tensor_dialect956 (value_use)957 (value_use)958 (integer_literal)959 (integer_literal)960 (integer_literal)961 (integer_literal)962 (integer_literal)963 (integer_literal)964 (integer_literal)965 (integer_literal)966 (integer_literal)967 (type968 (builtin_type969 (tensor_type970 (dim_list971 (float_type)))))972 (type973 (builtin_type974 (tensor_type975 (dim_list976 (float_type))))))))977 (operation978 (op_result979 (value_use))980 (custom_operation981 (tensor_dialect982 (value_use)983 (value_use)984 (integer_literal)985 (value_use)986 (integer_literal)987 (integer_literal)988 (value_use)989 (integer_literal)990 (integer_literal)991 (integer_literal)992 (integer_literal)993 (type994 (builtin_type995 (tensor_type996 (dim_list997 (float_type)))))998 (type999 (builtin_type1000 (tensor_type1001 (dim_list1002 (float_type))))))))1003 (operation1004 (custom_operation1005 (func_dialect)))))))))1006 1007================================================================================1008tensor.rank, tensor.generate, tensor.yield, tensor.extract1009================================================================================1010func.func @extract_from_tensor.generate(%idx: index, %tensor: tensor<*xf32>) -> index {1011 %size = tensor.rank %tensor : tensor<*xf32>1012 %0 = tensor.generate %size {1013 ^bb0(%arg0: index):1014 %1 = tensor.dim %tensor, %arg0 : tensor<*xf32>1015 tensor.yield %1 : index1016 } : tensor<?xindex>1017 %1 = tensor.extract %0[%idx] : tensor<?xindex>1018 return %1 : index1019}1020--------------------------------------------------------------------------------1021 1022(toplevel1023 (operation1024 (custom_operation1025 (func_dialect1026 (symbol_ref_id)1027 (func_arg_list1028 (value_use)1029 (type1030 (builtin_type1031 (index_type)))1032 (value_use)1033 (type1034 (builtin_type1035 (tensor_type1036 (dim_list1037 (float_type))))))1038 (func_return1039 (type_list_attr_parens1040 (type1041 (builtin_type1042 (index_type)))))1043 (region1044 (entry_block1045 (operation1046 (op_result1047 (value_use))1048 (custom_operation1049 (tensor_dialect1050 (value_use)1051 (type1052 (builtin_type1053 (tensor_type1054 (dim_list1055 (float_type))))))))1056 (operation1057 (op_result1058 (value_use))1059 (custom_operation1060 (tensor_dialect1061 (value_use)1062 (region1063 (block1064 (block_label1065 (caret_id)1066 (block_arg_list1067 (value_use)1068 (type1069 (builtin_type1070 (index_type)))))1071 (operation1072 (op_result1073 (value_use))1074 (custom_operation1075 (tensor_dialect1076 (value_use)1077 (value_use)1078 (type1079 (builtin_type1080 (tensor_type1081 (dim_list1082 (float_type))))))))1083 (operation1084 (custom_operation1085 (tensor_dialect1086 (value_use)1087 (type1088 (builtin_type1089 (index_type))))))))1090 (type1091 (builtin_type1092 (tensor_type1093 (dim_list1094 (index_type))))))))1095 (operation1096 (op_result1097 (value_use))1098 (custom_operation1099 (tensor_dialect1100 (value_use)1101 (value_use)1102 (type1103 (builtin_type1104 (tensor_type1105 (dim_list1106 (index_type))))))))1107 (operation1108 (custom_operation1109 (func_dialect1110 (value_use)1111 (type1112 (builtin_type1113 (index_type))))))))))))1114 1115================================================================================1116tensor.insert1117================================================================================1118func.func @insert(%arg0: f32, %arg1: index, %arg2: tensor<?x?x?xf32>) {1119 %0 = tensor.insert %arg0 into %arg2[%arg1, %arg1, %arg1] : tensor<?x?x?xf32>1120 return1121}1122--------------------------------------------------------------------------------1123 1124(toplevel1125 (operation1126 (custom_operation1127 (func_dialect1128 (symbol_ref_id)1129 (func_arg_list1130 (value_use)1131 (type1132 (builtin_type1133 (float_type)))1134 (value_use)1135 (type1136 (builtin_type1137 (index_type)))1138 (value_use)1139 (type1140 (builtin_type1141 (tensor_type1142 (dim_list1143 (float_type))))))1144 (region1145 (entry_block1146 (operation1147 (op_result1148 (value_use))1149 (custom_operation1150 (tensor_dialect1151 (value_use)1152 (value_use)1153 (value_use)1154 (value_use)1155 (value_use)1156 (type1157 (builtin_type1158 (tensor_type1159 (dim_list1160 (float_type))))))))1161 (operation1162 (custom_operation1163 (func_dialect)))))))))1164 1165================================================================================1166tensor.from_elements and tensor.reshape1167================================================================================1168func.func @tensor.reshape(%t1: tensor<?x10xf32>) -> tensor<2x2x5xf32> {1169 %two = arith.constant 2 : i641170 %five = arith.constant 5 : i641171 %shape = tensor.from_elements %two, %two, %five : tensor<3xi64>1172 %reshaped = tensor.reshape %t1(%shape) : (tensor<?x10xf32>, tensor<3xi64>) -> tensor<2x2x5xf32>1173 return %reshaped : tensor<2x2x5xf32>1174}1175--------------------------------------------------------------------------------1176 1177(toplevel1178 (operation1179 (custom_operation1180 (func_dialect1181 (symbol_ref_id)1182 (func_arg_list1183 (value_use)1184 (type1185 (builtin_type1186 (tensor_type1187 (dim_list1188 (float_type))))))1189 (func_return1190 (type_list_attr_parens1191 (type1192 (builtin_type1193 (tensor_type1194 (dim_list1195 (float_type)))))))1196 (region1197 (entry_block1198 (operation1199 (op_result1200 (value_use))1201 (custom_operation1202 (arith_dialect1203 (integer_literal)1204 (type1205 (builtin_type1206 (integer_type))))))1207 (operation1208 (op_result1209 (value_use))1210 (custom_operation1211 (arith_dialect1212 (integer_literal)1213 (type1214 (builtin_type1215 (integer_type))))))1216 (operation1217 (op_result1218 (value_use))1219 (custom_operation1220 (tensor_dialect1221 (value_use)1222 (value_use)1223 (value_use)1224 (type1225 (builtin_type1226 (tensor_type1227 (dim_list1228 (integer_type))))))))1229 (operation1230 (op_result1231 (value_use))1232 (custom_operation1233 (tensor_dialect1234 (value_use)1235 (value_use)1236 (function_type1237 (type1238 (builtin_type1239 (tensor_type1240 (dim_list1241 (float_type)))))1242 (type1243 (builtin_type1244 (tensor_type1245 (dim_list1246 (integer_type)))))1247 (type1248 (builtin_type1249 (tensor_type1250 (dim_list1251 (float_type)))))))))1252 (operation1253 (custom_operation1254 (func_dialect1255 (value_use)1256 (type1257 (builtin_type1258 (tensor_type1259 (dim_list1260 (float_type))))))))))))))1261 1262================================================================================1263tensor.pad1264================================================================================1265func.func @pad_dynamic(%arg0: tensor<1x2x2x?xf32>, %low: index, %high: index,1266 %pad_value: f32) -> tensor<6x?x?x?xf32> {1267 %0 = tensor.pad %arg0 low[2, %low, 3, 3] high[3, 3, %high, 2] {1268 ^bb0(%arg1: index, %arg2: index, %arg3: index, %arg4: index):1269 tensor.yield %pad_value : f321270 } : tensor<1x2x2x?xf32> to tensor<6x?x?x?xf32>1271 return %0 : tensor<6x?x?x?xf32>1272}1273 1274func.func @pad_nofold_same_static_shape(%arg0: tensor<5x6xf32>, %a: index)1275 -> tensor<5x6xf32> {1276 %cst = arith.constant 0.000000e+00 : f321277 %0 = tensor.pad %arg0 nofold low[%a, 0] high[0, %a] {1278 ^bb0(%arg1: index, %arg2: index):1279 tensor.yield %cst : f321280 } : tensor<5x6xf32> to tensor<5x6xf32>1281 return %0 : tensor<5x6xf32>1282}1283--------------------------------------------------------------------------------1284 1285(toplevel1286 (operation1287 (custom_operation1288 (func_dialect1289 (symbol_ref_id)1290 (func_arg_list1291 (value_use)1292 (type1293 (builtin_type1294 (tensor_type1295 (dim_list1296 (float_type)))))1297 (value_use)1298 (type1299 (builtin_type1300 (index_type)))1301 (value_use)1302 (type1303 (builtin_type1304 (index_type)))1305 (value_use)1306 (type1307 (builtin_type1308 (float_type))))1309 (func_return1310 (type_list_attr_parens1311 (type1312 (builtin_type1313 (tensor_type1314 (dim_list1315 (float_type)))))))1316 (region1317 (entry_block1318 (operation1319 (op_result1320 (value_use))1321 (custom_operation1322 (tensor_dialect1323 (value_use)1324 (integer_literal)1325 (value_use)1326 (integer_literal)1327 (integer_literal)1328 (integer_literal)1329 (integer_literal)1330 (value_use)1331 (integer_literal)1332 (region1333 (block1334 (block_label1335 (caret_id)1336 (block_arg_list1337 (value_use)1338 (type1339 (builtin_type1340 (index_type)))1341 (value_use)1342 (type1343 (builtin_type1344 (index_type)))1345 (value_use)1346 (type1347 (builtin_type1348 (index_type)))1349 (value_use)1350 (type1351 (builtin_type1352 (index_type)))))1353 (operation1354 (custom_operation1355 (tensor_dialect1356 (value_use)1357 (type1358 (builtin_type1359 (float_type))))))))1360 (type1361 (builtin_type1362 (tensor_type1363 (dim_list1364 (float_type)))))1365 (type1366 (builtin_type1367 (tensor_type1368 (dim_list1369 (float_type))))))))1370 (operation1371 (custom_operation1372 (func_dialect1373 (value_use)1374 (type1375 (builtin_type1376 (tensor_type1377 (dim_list1378 (float_type)))))))))))))1379 (operation1380 (custom_operation1381 (func_dialect1382 (symbol_ref_id)1383 (func_arg_list1384 (value_use)1385 (type1386 (builtin_type1387 (tensor_type1388 (dim_list1389 (float_type)))))1390 (value_use)1391 (type1392 (builtin_type1393 (index_type))))1394 (func_return1395 (type_list_attr_parens1396 (type1397 (builtin_type1398 (tensor_type1399 (dim_list1400 (float_type)))))))1401 (region1402 (entry_block1403 (operation1404 (op_result1405 (value_use))1406 (custom_operation1407 (arith_dialect1408 (float_literal)1409 (type1410 (builtin_type1411 (float_type))))))1412 (operation1413 (op_result1414 (value_use))1415 (custom_operation1416 (tensor_dialect1417 (value_use)1418 (nofold_attr)1419 (value_use)1420 (integer_literal)1421 (integer_literal)1422 (value_use)1423 (region1424 (block1425 (block_label1426 (caret_id)1427 (block_arg_list1428 (value_use)1429 (type1430 (builtin_type1431 (index_type)))1432 (value_use)1433 (type1434 (builtin_type1435 (index_type)))))1436 (operation1437 (custom_operation1438 (tensor_dialect1439 (value_use)1440 (type1441 (builtin_type1442 (float_type))))))))1443 (type1444 (builtin_type1445 (tensor_type1446 (dim_list1447 (float_type)))))1448 (type1449 (builtin_type1450 (tensor_type1451 (dim_list1452 (float_type))))))))1453 (operation1454 (custom_operation1455 (func_dialect1456 (value_use)1457 (type1458 (builtin_type1459 (tensor_type1460 (dim_list1461 (float_type))))))))))))))1462 1463================================================================================1464tensor.splat1465================================================================================1466func.func @test_splat_op(%s : f32) {1467 %v = tensor.splat %s : tensor<8xf32>1468 return1469}1470--------------------------------------------------------------------------------1471 1472(toplevel1473 (operation1474 (custom_operation1475 (func_dialect1476 (symbol_ref_id)1477 (func_arg_list1478 (value_use)1479 (type1480 (builtin_type1481 (float_type))))1482 (region1483 (entry_block1484 (operation1485 (op_result1486 (value_use))1487 (custom_operation1488 (tensor_dialect1489 (value_use)1490 (type1491 (builtin_type1492 (tensor_type1493 (dim_list1494 (float_type))))))))1495 (operation1496 (custom_operation1497 (func_dialect)))))))))1498 1499================================================================================1500tensor.reshape1501================================================================================1502func.func @tensor_reshape(%unranked: tensor<*xf32>, %shape: tensor<1xi32>) {1503 %dyn_vec = tensor.reshape %unranked(%shape)1504 : (tensor<*xf32>, tensor<1xi32>) -> tensor<?xf32>1505 return1506}1507--------------------------------------------------------------------------------1508 1509(toplevel1510 (operation1511 (custom_operation1512 (func_dialect1513 (symbol_ref_id)1514 (func_arg_list1515 (value_use)1516 (type1517 (builtin_type1518 (tensor_type1519 (dim_list1520 (float_type)))))1521 (value_use)1522 (type1523 (builtin_type1524 (tensor_type1525 (dim_list1526 (integer_type))))))1527 (region1528 (entry_block1529 (operation1530 (op_result1531 (value_use))1532 (custom_operation1533 (tensor_dialect1534 (value_use)1535 (value_use)1536 (function_type1537 (type1538 (builtin_type1539 (tensor_type1540 (dim_list1541 (float_type)))))1542 (type1543 (builtin_type1544 (tensor_type1545 (dim_list1546 (integer_type)))))1547 (type1548 (builtin_type1549 (tensor_type1550 (dim_list1551 (float_type)))))))))1552 (operation1553 (custom_operation1554 (func_dialect)))))))))1555 1556================================================================================1557tensor.pack and tensor.unpack1558================================================================================1559func.func @pack_nc_to_ncnc(%source: tensor<128x256xf32>, %dest: tensor<4x16x32x16xf32>) -> tensor<128x256xf32> {1560 %0 = tensor.pack %source inner_dims_pos = [0, 1] inner_tiles = [32, 16] into %dest : tensor<128x256xf32> -> tensor<4x16x32x16xf32>1561 %1 = tensor.empty() : tensor<128x256xf32>1562 %2 = tensor.unpack %0 inner_dims_pos = [0, 1] inner_tiles = [32, 16] into %1 : tensor<4x16x32x16xf32> -> tensor<128x256xf32>1563 return %2 : tensor<128x256xf32>1564}1565--------------------------------------------------------------------------------1566 1567(toplevel1568 (operation1569 (custom_operation1570 (func_dialect1571 (symbol_ref_id)1572 (func_arg_list1573 (value_use)1574 (type1575 (builtin_type1576 (tensor_type1577 (dim_list1578 (float_type)))))1579 (value_use)1580 (type1581 (builtin_type1582 (tensor_type1583 (dim_list1584 (float_type))))))1585 (func_return1586 (type_list_attr_parens1587 (type1588 (builtin_type1589 (tensor_type1590 (dim_list1591 (float_type)))))))1592 (region1593 (entry_block1594 (operation1595 (op_result1596 (value_use))1597 (custom_operation1598 (tensor_dialect1599 (value_use)1600 (inner_dims_pos_attr1601 (integer_literal)1602 (integer_literal))1603 (inner_tiles_attr1604 (integer_literal)1605 (integer_literal))1606 (value_use)1607 (function_type1608 (type1609 (builtin_type1610 (tensor_type1611 (dim_list1612 (float_type)))))1613 (type1614 (builtin_type1615 (tensor_type1616 (dim_list1617 (float_type)))))))))1618 (operation1619 (op_result1620 (value_use))1621 (custom_operation1622 (tensor_dialect1623 (type1624 (builtin_type1625 (tensor_type1626 (dim_list1627 (float_type))))))))1628 (operation1629 (op_result1630 (value_use))1631 (custom_operation1632 (tensor_dialect1633 (value_use)1634 (inner_dims_pos_attr1635 (integer_literal)1636 (integer_literal))1637 (inner_tiles_attr1638 (integer_literal)1639 (integer_literal))1640 (value_use)1641 (function_type1642 (type1643 (builtin_type1644 (tensor_type1645 (dim_list1646 (float_type)))))1647 (type1648 (builtin_type1649 (tensor_type1650 (dim_list1651 (float_type)))))))))1652 (operation1653 (custom_operation1654 (func_dialect1655 (value_use)1656 (type1657 (builtin_type1658 (tensor_type1659 (dim_list1660 (float_type))))))))))))))1661 1662================================================================================1663memref.alloc, memref.cast, and memref.copy1664================================================================================1665func.func @memref_copy() {1666 %0 = memref.alloc() : memref<2xf32>1667 %1 = memref.cast %0 : memref<2xf32> to memref<*xf32>1668 %2 = memref.alloc() : memref<2xf32>1669 %3 = memref.cast %0 : memref<2xf32> to memref<*xf32>1670 memref.copy %1, %3 : memref<*xf32> to memref<*xf32>1671 return1672}1673--------------------------------------------------------------------------------1674 1675(toplevel1676 (operation1677 (custom_operation1678 (func_dialect1679 (symbol_ref_id)1680 (func_arg_list)1681 (region1682 (entry_block1683 (operation1684 (op_result1685 (value_use))1686 (custom_operation1687 (memref_dialect1688 (type1689 (builtin_type1690 (memref_type1691 (dim_list1692 (float_type))))))))1693 (operation1694 (op_result1695 (value_use))1696 (custom_operation1697 (memref_dialect1698 (value_use)1699 (type1700 (builtin_type1701 (memref_type1702 (dim_list1703 (float_type)))))1704 (type1705 (builtin_type1706 (memref_type1707 (dim_list1708 (float_type))))))))1709 (operation1710 (op_result1711 (value_use))1712 (custom_operation1713 (memref_dialect1714 (type1715 (builtin_type1716 (memref_type1717 (dim_list1718 (float_type))))))))1719 (operation1720 (op_result1721 (value_use))1722 (custom_operation1723 (memref_dialect1724 (value_use)1725 (type1726 (builtin_type1727 (memref_type1728 (dim_list1729 (float_type)))))1730 (type1731 (builtin_type1732 (memref_type1733 (dim_list1734 (float_type))))))))1735 (operation1736 (custom_operation1737 (memref_dialect1738 (value_use)1739 (value_use)1740 (type1741 (builtin_type1742 (memref_type1743 (dim_list1744 (float_type)))))1745 (type1746 (builtin_type1747 (memref_type1748 (dim_list1749 (float_type))))))))1750 (operation1751 (custom_operation1752 (func_dialect)))))))))1753 1754================================================================================1755memref.expand_shape and memref.collapse_shape1756================================================================================1757func.func @expand_collapse_shape_dynamic(%arg0: memref<?x?x?xf32>,1758 %arg1: memref<?x?x?xf32, strided<[?, ?, 1], offset: 0>>,1759 %arg2: memref<?x?x?xf32, strided<[?, ?, 1], offset: ?>>,1760 %arg3: memref<?x42xf32, strided<[42, 1], offset: 0>>) {1761 %0 = memref.collapse_shape %arg0 [[0, 1], [2]] :1762 memref<?x?x?xf32> into memref<?x?xf32>1763 %r0 = memref.expand_shape %0 [[0, 1], [2]] :1764 memref<?x?xf32> into memref<?x4x?xf32>1765 %1 = memref.collapse_shape %arg1 [[0, 1], [2]] :1766 memref<?x?x?xf32, strided<[?, ?, 1], offset: 0>> into1767 memref<?x?xf32, strided<[?, 1], offset: 0>>1768 %r1 = memref.expand_shape %1 [[0, 1], [2]] :1769 memref<?x?xf32, strided<[?, 1], offset: 0>> into1770 memref<?x4x?xf32, strided<[?, ?, 1], offset: 0>>1771 %2 = memref.collapse_shape %arg2 [[0, 1], [2]] :1772 memref<?x?x?xf32, strided<[?, ?, 1], offset: ?>> into1773 memref<?x?xf32, strided<[?, 1], offset: ?>>1774 %r2 = memref.expand_shape %2 [[0, 1], [2]] :1775 memref<?x?xf32, strided<[?, 1], offset: ?>> into1776 memref<?x4x?xf32, strided<[?, ?, 1], offset: ?>>1777 %3 = memref.collapse_shape %arg3 [[0, 1]] :1778 memref<?x42xf32, strided<[42, 1], offset: 0>> into1779 memref<?xf32, strided<[1]>>1780 %r3 = memref.expand_shape %3 [[0, 1]] :1781 memref<?xf32, strided<[1]>> into memref<?x42xf32>1782 return1783}1784--------------------------------------------------------------------------------1785 1786(toplevel1787 (operation1788 (custom_operation1789 (func_dialect1790 (symbol_ref_id)1791 (func_arg_list1792 (value_use)1793 (type1794 (builtin_type1795 (memref_type1796 (dim_list1797 (float_type)))))1798 (value_use)1799 (type1800 (builtin_type1801 (memref_type1802 (dim_list1803 (float_type))1804 (attribute_value1805 (builtin_attribute1806 (strided_layout1807 (integer_literal)))))))1808 (value_use)1809 (type1810 (builtin_type1811 (memref_type1812 (dim_list1813 (float_type))1814 (attribute_value1815 (builtin_attribute1816 (strided_layout))))))1817 (value_use)1818 (type1819 (builtin_type1820 (memref_type1821 (dim_list1822 (float_type))1823 (attribute_value1824 (builtin_attribute1825 (strided_layout1826 (integer_literal))))))))1827 (region1828 (entry_block1829 (operation1830 (op_result1831 (value_use))1832 (custom_operation1833 (memref_dialect1834 (value_use)1835 (nested_idx_list1836 (nested_idx_list1837 (integer_literal)1838 (integer_literal))1839 (nested_idx_list1840 (integer_literal)))1841 (type1842 (builtin_type1843 (memref_type1844 (dim_list1845 (float_type)))))1846 (type1847 (builtin_type1848 (memref_type1849 (dim_list1850 (float_type))))))))1851 (operation1852 (op_result1853 (value_use))1854 (custom_operation1855 (memref_dialect1856 (value_use)1857 (nested_idx_list1858 (nested_idx_list1859 (integer_literal)1860 (integer_literal))1861 (nested_idx_list1862 (integer_literal)))1863 (type1864 (builtin_type1865 (memref_type1866 (dim_list1867 (float_type)))))1868 (type1869 (builtin_type1870 (memref_type1871 (dim_list1872 (float_type))))))))1873 (operation1874 (op_result1875 (value_use))1876 (custom_operation1877 (memref_dialect1878 (value_use)1879 (nested_idx_list1880 (nested_idx_list1881 (integer_literal)1882 (integer_literal))1883 (nested_idx_list1884 (integer_literal)))1885 (type1886 (builtin_type1887 (memref_type1888 (dim_list1889 (float_type))1890 (attribute_value1891 (builtin_attribute1892 (strided_layout1893 (integer_literal)))))))1894 (type1895 (builtin_type1896 (memref_type1897 (dim_list1898 (float_type))1899 (attribute_value1900 (builtin_attribute1901 (strided_layout1902 (integer_literal))))))))))1903 (operation1904 (op_result1905 (value_use))1906 (custom_operation1907 (memref_dialect1908 (value_use)1909 (nested_idx_list1910 (nested_idx_list1911 (integer_literal)1912 (integer_literal))1913 (nested_idx_list1914 (integer_literal)))1915 (type1916 (builtin_type1917 (memref_type1918 (dim_list1919 (float_type))1920 (attribute_value1921 (builtin_attribute1922 (strided_layout1923 (integer_literal)))))))1924 (type1925 (builtin_type1926 (memref_type1927 (dim_list1928 (float_type))1929 (attribute_value1930 (builtin_attribute1931 (strided_layout1932 (integer_literal))))))))))1933 (operation1934 (op_result1935 (value_use))1936 (custom_operation1937 (memref_dialect1938 (value_use)1939 (nested_idx_list1940 (nested_idx_list1941 (integer_literal)1942 (integer_literal))1943 (nested_idx_list1944 (integer_literal)))1945 (type1946 (builtin_type1947 (memref_type1948 (dim_list1949 (float_type))1950 (attribute_value1951 (builtin_attribute1952 (strided_layout))))))1953 (type1954 (builtin_type1955 (memref_type1956 (dim_list1957 (float_type))1958 (attribute_value1959 (builtin_attribute1960 (strided_layout)))))))))1961 (operation1962 (op_result1963 (value_use))1964 (custom_operation1965 (memref_dialect1966 (value_use)1967 (nested_idx_list1968 (nested_idx_list1969 (integer_literal)1970 (integer_literal))1971 (nested_idx_list1972 (integer_literal)))1973 (type1974 (builtin_type1975 (memref_type1976 (dim_list1977 (float_type))1978 (attribute_value1979 (builtin_attribute1980 (strided_layout))))))1981 (type1982 (builtin_type1983 (memref_type1984 (dim_list1985 (float_type))1986 (attribute_value1987 (builtin_attribute1988 (strided_layout)))))))))1989 (operation1990 (op_result1991 (value_use))1992 (custom_operation1993 (memref_dialect1994 (value_use)1995 (nested_idx_list1996 (nested_idx_list1997 (integer_literal)1998 (integer_literal)))1999 (type2000 (builtin_type2001 (memref_type2002 (dim_list2003 (float_type))2004 (attribute_value2005 (builtin_attribute2006 (strided_layout2007 (integer_literal)))))))2008 (type2009 (builtin_type2010 (memref_type2011 (dim_list2012 (float_type))2013 (attribute_value2014 (builtin_attribute2015 (strided_layout)))))))))2016 (operation2017 (op_result2018 (value_use))2019 (custom_operation2020 (memref_dialect2021 (value_use)2022 (nested_idx_list2023 (nested_idx_list2024 (integer_literal)2025 (integer_literal)))2026 (type2027 (builtin_type2028 (memref_type2029 (dim_list2030 (float_type))2031 (attribute_value2032 (builtin_attribute2033 (strided_layout))))))2034 (type2035 (builtin_type2036 (memref_type2037 (dim_list2038 (float_type))))))))2039 (operation2040 (custom_operation2041 (func_dialect)))))))))2042 2043================================================================================2044memref.realloc2045================================================================================2046func.func @memref_realloc_sd(%src : memref<2xf32>, %d : index) -> memref<?xf32>{2047 %0 = memref.realloc %src(%d) : memref<2xf32> to memref<?xf32>2048 return %0 : memref<?xf32>2049}2050--------------------------------------------------------------------------------2051 2052(toplevel2053 (operation2054 (custom_operation2055 (func_dialect2056 (symbol_ref_id)2057 (func_arg_list2058 (value_use)2059 (type2060 (builtin_type2061 (memref_type2062 (dim_list2063 (float_type)))))2064 (value_use)2065 (type2066 (builtin_type2067 (index_type))))2068 (func_return2069 (type_list_attr_parens2070 (type2071 (builtin_type2072 (memref_type2073 (dim_list2074 (float_type)))))))2075 (region2076 (entry_block2077 (operation2078 (op_result2079 (value_use))2080 (custom_operation2081 (memref_dialect2082 (value_use)2083 (value_use)2084 (type2085 (builtin_type2086 (memref_type2087 (dim_list2088 (float_type)))))2089 (type2090 (builtin_type2091 (memref_type2092 (dim_list2093 (float_type))))))))2094 (operation2095 (custom_operation2096 (func_dialect2097 (value_use)2098 (type2099 (builtin_type2100 (memref_type2101 (dim_list2102 (float_type))))))))))))))2103 2104================================================================================2105memref.prefetch2106================================================================================2107func.func @prefetch_locality_hint(%i : index) {2108 %0 = memref.alloc() : memref<10xf32>2109 memref.prefetch %0[%i], read, locality<3>, data : memref<10xf32>2110 return2111}2112--------------------------------------------------------------------------------2113 2114(toplevel2115 (operation2116 (custom_operation2117 (func_dialect2118 (symbol_ref_id)2119 (func_arg_list2120 (value_use)2121 (type2122 (builtin_type2123 (index_type))))2124 (region2125 (entry_block2126 (operation2127 (op_result2128 (value_use))2129 (custom_operation2130 (memref_dialect2131 (type2132 (builtin_type2133 (memref_type2134 (dim_list2135 (float_type))))))))2136 (operation2137 (custom_operation2138 (memref_dialect2139 (value_use)2140 (value_use)2141 (isWrite_attr)2142 (localityHint_attr2143 (integer_literal))2144 (isDataCache_attr)2145 (type2146 (builtin_type2147 (memref_type2148 (dim_list2149 (float_type))))))))2150 (operation2151 (custom_operation2152 (func_dialect)))))))))2153 2154================================================================================2155memref.rank2156================================================================================2157func.func @rank(%t : memref<4x4x?xf32>) {2158 %0 = memref.rank %t : memref<4x4x?xf32>2159 return2160}2161--------------------------------------------------------------------------------2162 2163(toplevel2164 (operation2165 (custom_operation2166 (func_dialect2167 (symbol_ref_id)2168 (func_arg_list2169 (value_use)2170 (type2171 (builtin_type2172 (memref_type2173 (dim_list2174 (float_type))))))2175 (region2176 (entry_block2177 (operation2178 (op_result2179 (value_use))2180 (custom_operation2181 (memref_dialect2182 (value_use)2183 (type2184 (builtin_type2185 (memref_type2186 (dim_list2187 (float_type))))))))2188 (operation2189 (custom_operation2190 (func_dialect)))))))))2191 2192================================================================================2193memref.store2194================================================================================2195func.func @truncation_spillover(%arg0 : memref<?xi32>) -> index {2196 %c0 = arith.constant 0 : index2197 %c1 = arith.constant 1 : index2198 %c2 = arith.constant 2 : index2199 %c49 = arith.constant 49 : index2200 %0 = scf.for %arg1 = %c0 to %c2 step %c1 iter_args(%arg2 = %c0) -> index {2201 %1 = arith.divsi %arg2, %c49 : index2202 %2 = arith.index_cast %1 : index to i322203 memref.store %2, %arg0[%c0] : memref<?xi32>2204 %3 = arith.addi %arg2, %arg1 : index2205 scf.yield %3 : index2206 }2207 func.return %0 : index2208}2209--------------------------------------------------------------------------------2210 2211(toplevel2212 (operation2213 (custom_operation2214 (func_dialect2215 (symbol_ref_id)2216 (func_arg_list2217 (value_use)2218 (type2219 (builtin_type2220 (memref_type2221 (dim_list2222 (integer_type))))))2223 (func_return2224 (type_list_attr_parens2225 (type2226 (builtin_type2227 (index_type)))))2228 (region2229 (entry_block2230 (operation2231 (op_result2232 (value_use))2233 (custom_operation2234 (arith_dialect2235 (integer_literal)2236 (type2237 (builtin_type2238 (index_type))))))2239 (operation2240 (op_result2241 (value_use))2242 (custom_operation2243 (arith_dialect2244 (integer_literal)2245 (type2246 (builtin_type2247 (index_type))))))2248 (operation2249 (op_result2250 (value_use))2251 (custom_operation2252 (arith_dialect2253 (integer_literal)2254 (type2255 (builtin_type2256 (index_type))))))2257 (operation2258 (op_result2259 (value_use))2260 (custom_operation2261 (arith_dialect2262 (integer_literal)2263 (type2264 (builtin_type2265 (index_type))))))2266 (operation2267 (op_result2268 (value_use))2269 (custom_operation2270 (scf_dialect2271 (value_use)2272 (value_use)2273 (value_use)2274 (value_use)2275 (value_use)2276 (value_use)2277 (type2278 (builtin_type2279 (index_type)))2280 (region2281 (entry_block2282 (operation2283 (op_result2284 (value_use))2285 (custom_operation2286 (arith_dialect2287 (value_use)2288 (value_use)2289 (type2290 (builtin_type2291 (index_type))))))2292 (operation2293 (op_result2294 (value_use))2295 (custom_operation2296 (arith_dialect2297 (value_use)2298 (type2299 (builtin_type2300 (index_type)))2301 (type2302 (builtin_type2303 (integer_type))))))2304 (operation2305 (custom_operation2306 (memref_dialect2307 (value_use)2308 (value_use)2309 (value_use)2310 (type2311 (builtin_type2312 (memref_type2313 (dim_list2314 (integer_type))))))))2315 (operation2316 (op_result2317 (value_use))2318 (custom_operation2319 (arith_dialect2320 (value_use)2321 (value_use)2322 (type2323 (builtin_type2324 (index_type))))))2325 (operation2326 (custom_operation2327 (scf_dialect2328 (value_use)2329 (type2330 (builtin_type2331 (index_type)))))))))))2332 (operation2333 (custom_operation2334 (func_dialect2335 (value_use)2336 (type2337 (builtin_type2338 (index_type))))))))))))2339 2340================================================================================2341memref.reinterpret_cast2342================================================================================2343func.func @memref_reinterpret_cast_static_to_dynamic_sizes(%in: memref<?xf32>)2344 -> memref<10x?xf32, strided<[?, 1], offset: ?>> {2345 %out = memref.reinterpret_cast %in to2346 offset: [1], sizes: [10, 10], strides: [1, 1]2347 : memref<?xf32> to memref<10x?xf32, strided<[?, 1], offset: ?>>2348 return %out : memref<10x?xf32, strided<[?, 1], offset: ?>>2349}2350--------------------------------------------------------------------------------2351 2352(toplevel2353 (operation2354 (custom_operation2355 (func_dialect2356 (symbol_ref_id)2357 (func_arg_list2358 (value_use)2359 (type2360 (builtin_type2361 (memref_type2362 (dim_list2363 (float_type))))))2364 (func_return2365 (type_list_attr_parens2366 (type2367 (builtin_type2368 (memref_type2369 (dim_list2370 (float_type))2371 (attribute_value2372 (builtin_attribute2373 (strided_layout))))))))2374 (region2375 (entry_block2376 (operation2377 (op_result2378 (value_use))2379 (custom_operation2380 (memref_dialect2381 (value_use)2382 (integer_literal)2383 (integer_literal)2384 (integer_literal)2385 (integer_literal)2386 (integer_literal)2387 (type2388 (builtin_type2389 (memref_type2390 (dim_list2391 (float_type)))))2392 (type2393 (builtin_type2394 (memref_type2395 (dim_list2396 (float_type))2397 (attribute_value2398 (builtin_attribute2399 (strided_layout)))))))))2400 (operation2401 (custom_operation2402 (func_dialect2403 (value_use)2404 (type2405 (builtin_type2406 (memref_type2407 (dim_list2408 (float_type))2409 (attribute_value2410 (builtin_attribute2411 (strided_layout)))))))))))))))2412 2413================================================================================2414cf.assert2415================================================================================2416func.func @assert(%arg : i1) {2417 cf.assert %arg, "Some message in case this assertion fails."2418 return2419}2420--------------------------------------------------------------------------------2421 2422(toplevel2423 (operation2424 (custom_operation2425 (func_dialect2426 (symbol_ref_id)2427 (func_arg_list2428 (value_use)2429 (type2430 (builtin_type2431 (integer_type))))2432 (region2433 (entry_block2434 (operation2435 (custom_operation2436 (cf_dialect2437 (value_use)2438 (string_literal))))2439 (operation2440 (custom_operation2441 (func_dialect)))))))))2442 2443================================================================================2444vector.splat2445================================================================================2446func.func @signExtendConstantSplat() -> vector<4xi16> {2447 %c-2 = arith.constant -2 : i82448 %splat = vector.splat %c-2 : vector<4xi8>2449 %ext = arith.extsi %splat : vector<4xi8> to vector<4xi16>2450 return %ext : vector<4xi16>2451}2452--------------------------------------------------------------------------------2453 2454(toplevel2455 (operation2456 (custom_operation2457 (func_dialect2458 (symbol_ref_id)2459 (func_arg_list)2460 (func_return2461 (type_list_attr_parens2462 (type2463 (builtin_type2464 (vector_type2465 (vector_dim_list)2466 (integer_type))))))2467 (region2468 (entry_block2469 (operation2470 (op_result2471 (value_use))2472 (custom_operation2473 (arith_dialect2474 (integer_literal)2475 (type2476 (builtin_type2477 (integer_type))))))2478 (operation2479 (op_result2480 (value_use))2481 (custom_operation2482 (vector_dialect2483 (value_use)2484 (type2485 (builtin_type2486 (vector_type2487 (vector_dim_list)2488 (integer_type)))))))2489 (operation2490 (op_result2491 (value_use))2492 (custom_operation2493 (arith_dialect2494 (value_use)2495 (type2496 (builtin_type2497 (vector_type2498 (vector_dim_list)2499 (integer_type))))2500 (type2501 (builtin_type2502 (vector_type2503 (vector_dim_list)2504 (integer_type)))))))2505 (operation2506 (custom_operation2507 (func_dialect2508 (value_use)2509 (type2510 (builtin_type2511 (vector_type2512 (vector_dim_list)2513 (integer_type)))))))))))))2514 2515================================================================================2516arith.cmpi with string parameter2517================================================================================2518func.func @notCmpEQ(%arg0: i8, %arg1: i8) -> i1 {2519 %true = arith.constant true2520 %cmp = arith.cmpi "eq", %arg0, %arg1 : i82521 %ncmp = arith.xori %cmp, %true : i12522 return %ncmp : i12523}2524--------------------------------------------------------------------------------2525 2526(toplevel2527 (operation2528 (custom_operation2529 (func_dialect2530 (symbol_ref_id)2531 (func_arg_list2532 (value_use)2533 (type2534 (builtin_type2535 (integer_type)))2536 (value_use)2537 (type2538 (builtin_type2539 (integer_type))))2540 (func_return2541 (type_list_attr_parens2542 (type2543 (builtin_type2544 (integer_type)))))2545 (region2546 (entry_block2547 (operation2548 (op_result2549 (value_use))2550 (custom_operation2551 (arith_dialect2552 (bool_literal))))2553 (operation2554 (op_result2555 (value_use))2556 (custom_operation2557 (arith_dialect2558 (string_literal)2559 (value_use)2560 (value_use)2561 (type2562 (builtin_type2563 (integer_type))))))2564 (operation2565 (op_result2566 (value_use))2567 (custom_operation2568 (arith_dialect2569 (value_use)2570 (value_use)2571 (type2572 (builtin_type2573 (integer_type))))))2574 (operation2575 (custom_operation2576 (func_dialect2577 (value_use)2578 (type2579 (builtin_type2580 (integer_type))))))))))))2581 2582================================================================================2583bufferization.alloc_tensor2584================================================================================2585func.func @test_alloc_tensor_op(%t: tensor<?x5xf32>, %sz: index)2586 -> tensor<?x5xf32>2587{2588 %0 = bufferization.alloc_tensor(%sz) : tensor<?x5xf32>2589 %1 = bufferization.alloc_tensor() copy(%t) : tensor<?x5xf32>2590 %2 = bufferization.alloc_tensor() : tensor<5x6xf32>2591 %3 = bufferization.alloc_tensor(%sz, %sz) : tensor<?x?xf32>2592 %4 = bufferization.alloc_tensor() copy(%t) {escape = true} : tensor<?x5xf32>2593 %5 = bufferization.alloc_tensor() copy(%t) {escape = false} : tensor<?x5xf32>2594 %c100 = arith.constant 100 : index2595 %6 = bufferization.alloc_tensor() size_hint=%c100 : tensor<100x100xf64, #CSR>2596 %7 = bufferization.alloc_tensor(%sz) {memory_space = "foo"} : tensor<?xf32>2597 return %1 : tensor<?x5xf32>2598}2599--------------------------------------------------------------------------------2600 2601(toplevel2602 (operation2603 (custom_operation2604 (func_dialect2605 (symbol_ref_id)2606 (func_arg_list2607 (value_use)2608 (type2609 (builtin_type2610 (tensor_type2611 (dim_list2612 (float_type)))))2613 (value_use)2614 (type2615 (builtin_type2616 (index_type))))2617 (func_return2618 (type_list_attr_parens2619 (type2620 (builtin_type2621 (tensor_type2622 (dim_list2623 (float_type)))))))2624 (region2625 (entry_block2626 (operation2627 (op_result2628 (value_use))2629 (custom_operation2630 (bufferization_dialect2631 (value_use)2632 (type2633 (builtin_type2634 (tensor_type2635 (dim_list2636 (float_type))))))))2637 (operation2638 (op_result2639 (value_use))2640 (custom_operation2641 (bufferization_dialect2642 (value_use)2643 (type2644 (builtin_type2645 (tensor_type2646 (dim_list2647 (float_type))))))))2648 (operation2649 (op_result2650 (value_use))2651 (custom_operation2652 (bufferization_dialect2653 (type2654 (builtin_type2655 (tensor_type2656 (dim_list2657 (float_type))))))))2658 (operation2659 (op_result2660 (value_use))2661 (custom_operation2662 (bufferization_dialect2663 (value_use)2664 (value_use)2665 (type2666 (builtin_type2667 (tensor_type2668 (dim_list2669 (float_type))))))))2670 (operation2671 (op_result2672 (value_use))2673 (custom_operation2674 (bufferization_dialect2675 (value_use)2676 (attribute2677 (dictionary_attribute2678 (attribute_entry2679 (bare_id)2680 (attribute_value2681 (bool_literal)))))2682 (type2683 (builtin_type2684 (tensor_type2685 (dim_list2686 (float_type))))))))2687 (operation2688 (op_result2689 (value_use))2690 (custom_operation2691 (bufferization_dialect2692 (value_use)2693 (attribute2694 (dictionary_attribute2695 (attribute_entry2696 (bare_id)2697 (attribute_value2698 (bool_literal)))))2699 (type2700 (builtin_type2701 (tensor_type2702 (dim_list2703 (float_type))))))))2704 (operation2705 (op_result2706 (value_use))2707 (custom_operation2708 (arith_dialect2709 (integer_literal)2710 (type2711 (builtin_type2712 (index_type))))))2713 (operation2714 (op_result2715 (value_use))2716 (custom_operation2717 (bufferization_dialect2718 (value_use)2719 (type2720 (builtin_type2721 (tensor_type2722 (dim_list2723 (float_type))2724 (tensor_encoding2725 (attribute_value2726 (attribute_alias)))))))))2727 (operation2728 (op_result2729 (value_use))2730 (custom_operation2731 (bufferization_dialect2732 (value_use)2733 (attribute2734 (dictionary_attribute2735 (attribute_entry2736 (bare_id)2737 (attribute_value2738 (string_literal)))))2739 (type2740 (builtin_type2741 (tensor_type2742 (dim_list2743 (float_type))))))))2744 (operation2745 (custom_operation2746 (func_dialect2747 (value_use)2748 (type2749 (builtin_type2750 (tensor_type2751 (dim_list2752 (float_type))))))))))))))2753 2754================================================================================2755vector.transfer_read and vector.transfer_write2756================================================================================2757func.func @vector_transfer_ops(%arg0: memref<?x?xf32>,2758 %arg1 : memref<?x?xvector<4x3xf32>>,2759 %arg2 : memref<?x?xvector<4x3xi32>>,2760 %arg3 : memref<?x?xvector<4x3xindex>>,2761 %arg4 : memref<?x?x?xf32>) {2762 %c3 = arith.constant 3 : index2763 %cst = arith.constant 3.0 : f322764 %f0 = arith.constant 0.0 : f322765 %c0 = arith.constant 0 : i322766 %i0 = arith.constant 0 : index2767 %i1 = arith.constant 1 : i12768 2769 %vf0 = vector.splat %f0 : vector<4x3xf32>2770 %v0 = vector.splat %c0 : vector<4x3xi32>2771 %vi0 = vector.splat %i0 : vector<4x3xindex>2772 %m = arith.constant dense<[0, 0, 1, 0, 1]> : vector<5xi1>2773 %m2 = vector.splat %i1 : vector<4x5xi1>2774 %0 = vector.transfer_read %arg0[%c3, %c3], %f0 {permutation_map = affine_map<(d0, d1)->(d0)>} : memref<?x?xf32>, vector<128xf32>2775 %1 = vector.transfer_read %arg0[%c3, %c3], %f0 {permutation_map = affine_map<(d0, d1)->(d1, d0)>} : memref<?x?xf32>, vector<3x7xf32>2776 %2 = vector.transfer_read %arg0[%c3, %c3], %cst {permutation_map = affine_map<(d0, d1)->(d0)>} : memref<?x?xf32>, vector<128xf32>2777 %3 = vector.transfer_read %arg0[%c3, %c3], %cst {permutation_map = affine_map<(d0, d1)->(d1)>} : memref<?x?xf32>, vector<128xf32>2778 %4 = vector.transfer_read %arg1[%c3, %c3], %vf0 {permutation_map = affine_map<(d0, d1)->(d0, d1)>} : memref<?x?xvector<4x3xf32>>, vector<1x1x4x3xf32>2779 %5 = vector.transfer_read %arg1[%c3, %c3], %vf0 {in_bounds = [false, true]} : memref<?x?xvector<4x3xf32>>, vector<1x1x4x3xf32>2780 %6 = vector.transfer_read %arg2[%c3, %c3], %v0 : memref<?x?xvector<4x3xi32>>, vector<5x24xi8>2781 %7 = vector.transfer_read %arg3[%c3, %c3], %vi0 : memref<?x?xvector<4x3xindex>>, vector<5x48xi8>2782 %8 = vector.transfer_read %arg0[%c3, %c3], %f0, %m : memref<?x?xf32>, vector<5xf32>2783 %9 = vector.transfer_read %arg4[%c3, %c3, %c3], %f0, %m2 {permutation_map = affine_map<(d0, d1, d2)->(d1, d0, 0)>} : memref<?x?x?xf32>, vector<5x4x8xf32>2784 2785 vector.transfer_write %0, %arg0[%c3, %c3] {permutation_map = affine_map<(d0, d1)->(d0)>} : vector<128xf32>, memref<?x?xf32>2786 vector.transfer_write %1, %arg0[%c3, %c3] {permutation_map = affine_map<(d0, d1)->(d1, d0)>} : vector<3x7xf32>, memref<?x?xf32>2787 vector.transfer_write %4, %arg1[%c3, %c3] {permutation_map = affine_map<(d0, d1)->(d0, d1)>} : vector<1x1x4x3xf32>, memref<?x?xvector<4x3xf32>>2788 vector.transfer_write %5, %arg1[%c3, %c3] {in_bounds = [false, false]} : vector<1x1x4x3xf32>, memref<?x?xvector<4x3xf32>>2789 vector.transfer_write %6, %arg2[%c3, %c3] : vector<5x24xi8>, memref<?x?xvector<4x3xi32>>2790 vector.transfer_write %7, %arg3[%c3, %c3] : vector<5x48xi8>, memref<?x?xvector<4x3xindex>>2791 vector.transfer_write %8, %arg0[%c3, %c3], %m : vector<5xf32>, memref<?x?xf32>2792 2793 return2794}2795--------------------------------------------------------------------------------2796 2797(toplevel2798 (operation2799 (custom_operation2800 (func_dialect2801 (symbol_ref_id)2802 (func_arg_list2803 (value_use)2804 (type2805 (builtin_type2806 (memref_type2807 (dim_list2808 (float_type)))))2809 (value_use)2810 (type2811 (builtin_type2812 (memref_type2813 (dim_list2814 (vector_type2815 (vector_dim_list)2816 (float_type))))))2817 (value_use)2818 (type2819 (builtin_type2820 (memref_type2821 (dim_list2822 (vector_type2823 (vector_dim_list)2824 (integer_type))))))2825 (value_use)2826 (type2827 (builtin_type2828 (memref_type2829 (dim_list2830 (vector_type2831 (vector_dim_list)2832 (index_type))))))2833 (value_use)2834 (type2835 (builtin_type2836 (memref_type2837 (dim_list2838 (float_type))))))2839 (region2840 (entry_block2841 (operation2842 (op_result2843 (value_use))2844 (custom_operation2845 (arith_dialect2846 (integer_literal)2847 (type2848 (builtin_type2849 (index_type))))))2850 (operation2851 (op_result2852 (value_use))2853 (custom_operation2854 (arith_dialect2855 (float_literal)2856 (type2857 (builtin_type2858 (float_type))))))2859 (operation2860 (op_result2861 (value_use))2862 (custom_operation2863 (arith_dialect2864 (float_literal)2865 (type2866 (builtin_type2867 (float_type))))))2868 (operation2869 (op_result2870 (value_use))2871 (custom_operation2872 (arith_dialect2873 (integer_literal)2874 (type2875 (builtin_type2876 (integer_type))))))2877 (operation2878 (op_result2879 (value_use))2880 (custom_operation2881 (arith_dialect2882 (integer_literal)2883 (type2884 (builtin_type2885 (index_type))))))2886 (operation2887 (op_result2888 (value_use))2889 (custom_operation2890 (arith_dialect2891 (integer_literal)2892 (type2893 (builtin_type2894 (integer_type))))))2895 (operation2896 (op_result2897 (value_use))2898 (custom_operation2899 (vector_dialect2900 (value_use)2901 (type2902 (builtin_type2903 (vector_type2904 (vector_dim_list)2905 (float_type)))))))2906 (operation2907 (op_result2908 (value_use))2909 (custom_operation2910 (vector_dialect2911 (value_use)2912 (type2913 (builtin_type2914 (vector_type2915 (vector_dim_list)2916 (integer_type)))))))2917 (operation2918 (op_result2919 (value_use))2920 (custom_operation2921 (vector_dialect2922 (value_use)2923 (type2924 (builtin_type2925 (vector_type2926 (vector_dim_list)2927 (index_type)))))))2928 (operation2929 (op_result2930 (value_use))2931 (custom_operation2932 (arith_dialect2933 (tensor_literal2934 (nested_idx_list2935 (integer_literal)2936 (integer_literal)2937 (integer_literal)2938 (integer_literal)2939 (integer_literal)))2940 (type2941 (builtin_type2942 (vector_type2943 (vector_dim_list)2944 (integer_type)))))))2945 (operation2946 (op_result2947 (value_use))2948 (custom_operation2949 (vector_dialect2950 (value_use)2951 (type2952 (builtin_type2953 (vector_type2954 (vector_dim_list)2955 (integer_type)))))))2956 (operation2957 (op_result2958 (value_use))2959 (custom_operation2960 (vector_dialect2961 (value_use)2962 (value_use)2963 (value_use)2964 (value_use)2965 (attribute2966 (dictionary_attribute2967 (attribute_entry2968 (bare_id)2969 (attribute_value2970 (builtin_attribute2971 (affine_map2972 (bare_id)2973 (bare_id)2974 (bare_id)))))))2975 (type2976 (builtin_type2977 (memref_type2978 (dim_list2979 (float_type)))))2980 (type2981 (builtin_type2982 (vector_type2983 (vector_dim_list)2984 (float_type)))))))2985 (operation2986 (op_result2987 (value_use))2988 (custom_operation2989 (vector_dialect2990 (value_use)2991 (value_use)2992 (value_use)2993 (value_use)2994 (attribute2995 (dictionary_attribute2996 (attribute_entry2997 (bare_id)2998 (attribute_value2999 (builtin_attribute3000 (affine_map3001 (bare_id)3002 (bare_id)3003 (bare_id)3004 (bare_id)))))))3005 (type3006 (builtin_type3007 (memref_type3008 (dim_list3009 (float_type)))))3010 (type3011 (builtin_type3012 (vector_type3013 (vector_dim_list)3014 (float_type)))))))3015 (operation3016 (op_result3017 (value_use))3018 (custom_operation3019 (vector_dialect3020 (value_use)3021 (value_use)3022 (value_use)3023 (value_use)3024 (attribute3025 (dictionary_attribute3026 (attribute_entry3027 (bare_id)3028 (attribute_value3029 (builtin_attribute3030 (affine_map3031 (bare_id)3032 (bare_id)3033 (bare_id)))))))3034 (type3035 (builtin_type3036 (memref_type3037 (dim_list3038 (float_type)))))3039 (type3040 (builtin_type3041 (vector_type3042 (vector_dim_list)3043 (float_type)))))))3044 (operation3045 (op_result3046 (value_use))3047 (custom_operation3048 (vector_dialect3049 (value_use)3050 (value_use)3051 (value_use)3052 (value_use)3053 (attribute3054 (dictionary_attribute3055 (attribute_entry3056 (bare_id)3057 (attribute_value3058 (builtin_attribute3059 (affine_map3060 (bare_id)3061 (bare_id)3062 (bare_id)))))))3063 (type3064 (builtin_type3065 (memref_type3066 (dim_list3067 (float_type)))))3068 (type3069 (builtin_type3070 (vector_type3071 (vector_dim_list)3072 (float_type)))))))3073 (operation3074 (op_result3075 (value_use))3076 (custom_operation3077 (vector_dialect3078 (value_use)3079 (value_use)3080 (value_use)3081 (value_use)3082 (attribute3083 (dictionary_attribute3084 (attribute_entry3085 (bare_id)3086 (attribute_value3087 (builtin_attribute3088 (affine_map3089 (bare_id)3090 (bare_id)3091 (bare_id)3092 (bare_id)))))))3093 (type3094 (builtin_type3095 (memref_type3096 (dim_list3097 (vector_type3098 (vector_dim_list)3099 (float_type))))))3100 (type3101 (builtin_type3102 (vector_type3103 (vector_dim_list)3104 (float_type)))))))3105 (operation3106 (op_result3107 (value_use))3108 (custom_operation3109 (vector_dialect3110 (value_use)3111 (value_use)3112 (value_use)3113 (value_use)3114 (attribute3115 (dictionary_attribute3116 (attribute_entry3117 (bare_id)3118 (attribute_value3119 (bool_literal)3120 (bool_literal)))))3121 (type3122 (builtin_type3123 (memref_type3124 (dim_list3125 (vector_type3126 (vector_dim_list)3127 (float_type))))))3128 (type3129 (builtin_type3130 (vector_type3131 (vector_dim_list)3132 (float_type)))))))3133 (operation3134 (op_result3135 (value_use))3136 (custom_operation3137 (vector_dialect3138 (value_use)3139 (value_use)3140 (value_use)3141 (value_use)3142 (type3143 (builtin_type3144 (memref_type3145 (dim_list3146 (vector_type3147 (vector_dim_list)3148 (integer_type))))))3149 (type3150 (builtin_type3151 (vector_type3152 (vector_dim_list)3153 (integer_type)))))))3154 (operation3155 (op_result3156 (value_use))3157 (custom_operation3158 (vector_dialect3159 (value_use)3160 (value_use)3161 (value_use)3162 (value_use)3163 (type3164 (builtin_type3165 (memref_type3166 (dim_list3167 (vector_type3168 (vector_dim_list)3169 (index_type))))))3170 (type3171 (builtin_type3172 (vector_type3173 (vector_dim_list)3174 (integer_type)))))))3175 (operation3176 (op_result3177 (value_use))3178 (custom_operation3179 (vector_dialect3180 (value_use)3181 (value_use)3182 (value_use)3183 (value_use)3184 (value_use)3185 (type3186 (builtin_type3187 (memref_type3188 (dim_list3189 (float_type)))))3190 (type3191 (builtin_type3192 (vector_type3193 (vector_dim_list)3194 (float_type)))))))3195 (operation3196 (op_result3197 (value_use))3198 (custom_operation3199 (vector_dialect3200 (value_use)3201 (value_use)3202 (value_use)3203 (value_use)3204 (value_use)3205 (value_use)3206 (attribute3207 (dictionary_attribute3208 (attribute_entry3209 (bare_id)3210 (attribute_value3211 (builtin_attribute3212 (affine_map3213 (bare_id)3214 (bare_id)3215 (bare_id)3216 (bare_id)3217 (bare_id)3218 (integer_literal)))))))3219 (type3220 (builtin_type3221 (memref_type3222 (dim_list3223 (float_type)))))3224 (type3225 (builtin_type3226 (vector_type3227 (vector_dim_list)3228 (float_type)))))))3229 (operation3230 (custom_operation3231 (vector_dialect3232 (value_use)3233 (value_use)3234 (value_use)3235 (value_use)3236 (attribute3237 (dictionary_attribute3238 (attribute_entry3239 (bare_id)3240 (attribute_value3241 (builtin_attribute3242 (affine_map3243 (bare_id)3244 (bare_id)3245 (bare_id)))))))3246 (type3247 (builtin_type3248 (vector_type3249 (vector_dim_list)3250 (float_type))))3251 (type3252 (builtin_type3253 (memref_type3254 (dim_list3255 (float_type))))))))3256 (operation3257 (custom_operation3258 (vector_dialect3259 (value_use)3260 (value_use)3261 (value_use)3262 (value_use)3263 (attribute3264 (dictionary_attribute3265 (attribute_entry3266 (bare_id)3267 (attribute_value3268 (builtin_attribute3269 (affine_map3270 (bare_id)3271 (bare_id)3272 (bare_id)3273 (bare_id)))))))3274 (type3275 (builtin_type3276 (vector_type3277 (vector_dim_list)3278 (float_type))))3279 (type3280 (builtin_type3281 (memref_type3282 (dim_list3283 (float_type))))))))3284 (operation3285 (custom_operation3286 (vector_dialect3287 (value_use)3288 (value_use)3289 (value_use)3290 (value_use)3291 (attribute3292 (dictionary_attribute3293 (attribute_entry3294 (bare_id)3295 (attribute_value3296 (builtin_attribute3297 (affine_map3298 (bare_id)3299 (bare_id)3300 (bare_id)3301 (bare_id)))))))3302 (type3303 (builtin_type3304 (vector_type3305 (vector_dim_list)3306 (float_type))))3307 (type3308 (builtin_type3309 (memref_type3310 (dim_list3311 (vector_type3312 (vector_dim_list)3313 (float_type)))))))))3314 (operation3315 (custom_operation3316 (vector_dialect3317 (value_use)3318 (value_use)3319 (value_use)3320 (value_use)3321 (attribute3322 (dictionary_attribute3323 (attribute_entry3324 (bare_id)3325 (attribute_value3326 (bool_literal)3327 (bool_literal)))))3328 (type3329 (builtin_type3330 (vector_type3331 (vector_dim_list)3332 (float_type))))3333 (type3334 (builtin_type3335 (memref_type3336 (dim_list3337 (vector_type3338 (vector_dim_list)3339 (float_type)))))))))3340 (operation3341 (custom_operation3342 (vector_dialect3343 (value_use)3344 (value_use)3345 (value_use)3346 (value_use)3347 (type3348 (builtin_type3349 (vector_type3350 (vector_dim_list)3351 (integer_type))))3352 (type3353 (builtin_type3354 (memref_type3355 (dim_list3356 (vector_type3357 (vector_dim_list)3358 (integer_type)))))))))3359 (operation3360 (custom_operation3361 (vector_dialect3362 (value_use)3363 (value_use)3364 (value_use)3365 (value_use)3366 (type3367 (builtin_type3368 (vector_type3369 (vector_dim_list)3370 (integer_type))))3371 (type3372 (builtin_type3373 (memref_type3374 (dim_list3375 (vector_type3376 (vector_dim_list)3377 (index_type)))))))))3378 (operation3379 (custom_operation3380 (vector_dialect3381 (value_use)3382 (value_use)3383 (value_use)3384 (value_use)3385 (value_use)3386 (type3387 (builtin_type3388 (vector_type3389 (vector_dim_list)3390 (float_type))))3391 (type3392 (builtin_type3393 (memref_type3394 (dim_list3395 (float_type))))))))3396 (operation3397 (custom_operation3398 (func_dialect)))))))))3399