Lines Matching refs:root

13   pdl_interp.func @matcher(%root : !pdl.operation) {
14 …pdl_interp.apply_constraint "multi_entity_constraint"(%root, %root : !pdl.operation, !pdl.operatio…
17 pdl_interp.apply_constraint "single_entity_constraint"(%root : !pdl.operation) -> ^pat2, ^end
20 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
27 pdl_interp.func @success(%root : !pdl.operation) {
29 pdl_interp.erase %root
44 pdl_interp.func @matcher(%root : !pdl.operation) {
45 %results = pdl_interp.get_results of %root : !pdl.range<value>
50 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
57 pdl_interp.func @success(%root : !pdl.operation) {
59 pdl_interp.erase %root
80 pdl_interp.func @matcher(%root : !pdl.operation) {
81 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
84 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
91 pdl_interp.func @success(%root : !pdl.operation) {
92 %operand = pdl_interp.get_operand 0 of %root
93 pdl_interp.apply_rewrite "rewriter"(%root, %operand : !pdl.operation, !pdl.value)
111 pdl_interp.func @matcher(%root : !pdl.operation) {
112 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
115 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
122 pdl_interp.func @success(%root : !pdl.operation) {
123 %op = pdl_interp.apply_rewrite "creator"(%root : !pdl.operation) : !pdl.operation
124 pdl_interp.erase %root
139 pdl_interp.func @matcher(%root : !pdl.operation) {
140 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
143 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
150 pdl_interp.func @success(%root : !pdl.operation) {
151 …%operands, %types = pdl_interp.apply_rewrite "var_creator"(%root : !pdl.operation) : !pdl.range<va…
153 pdl_interp.replace %root with (%operands : !pdl.range<value>)
172 pdl_interp.func @matcher(%root : !pdl.operation) {
173 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
176 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
183 pdl_interp.func @success(%root : !pdl.operation) {
187 pdl_interp.erase %root
206 pdl_interp.func @matcher(%root : !pdl.operation) {
208 %attr = pdl_interp.get_attribute "test_attr" of %root
212 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
219 pdl_interp.func @success(%root : !pdl.operation) {
221 pdl_interp.erase %root
236 pdl_interp.func @matcher(%root : !pdl.operation) {
238 %results = pdl_interp.get_results of %root : !pdl.range<value>
243 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
250 pdl_interp.func @success(%root : !pdl.operation) {
252 pdl_interp.erase %root
274 pdl_interp.func @matcher(%root : !pdl.operation) {
275 pdl_interp.check_operation_name of %root is "test.op" -> ^pat1, ^end
281 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(2), loc([%root]) ->…
288 pdl_interp.func @success(%root : !pdl.operation) {
290 pdl_interp.erase %root
309 pdl_interp.func @matcher(%root : !pdl.operation) {
310 %attr = pdl_interp.get_attribute "test_attr" of %root
314 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
321 pdl_interp.func @success(%root : !pdl.operation) {
323 pdl_interp.erase %root
342 pdl_interp.func @matcher(%root : !pdl.operation) {
343 pdl_interp.check_operand_count of %root is at_least 1 -> ^exact_check, ^end
346 pdl_interp.check_operand_count of %root is 2 -> ^pat, ^end
349 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
356 pdl_interp.func @success(%root : !pdl.operation) {
358 pdl_interp.erase %root
379 pdl_interp.func @matcher(%root : !pdl.operation) {
380 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
383 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
390 pdl_interp.func @success(%root : !pdl.operation) {
392 pdl_interp.erase %root
411 pdl_interp.func @matcher(%root : !pdl.operation) {
412 pdl_interp.check_result_count of %root is at_least 1 -> ^exact_check, ^end
415 pdl_interp.check_result_count of %root is 2 -> ^pat, ^end
418 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
425 pdl_interp.func @success(%root : !pdl.operation) {
427 pdl_interp.erase %root
449 pdl_interp.func @matcher(%root : !pdl.operation) {
450 %attr = pdl_interp.get_attribute "test_attr" of %root
458 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
465 pdl_interp.func @success(%root : !pdl.operation) {
467 pdl_interp.erase %root
486 pdl_interp.func @matcher(%root : !pdl.operation) {
487 %results = pdl_interp.get_results of %root : !pdl.range<value>
492 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
499 pdl_interp.func @success(%root : !pdl.operation) {
501 pdl_interp.erase %root
540 pdl_interp.func @matcher(%root : !pdl.operation) {
541 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
544 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
551 pdl_interp.func @success(%root : !pdl.operation) {
556 pdl_interp.erase %root
576 pdl_interp.func @matcher(%root : !pdl.operation) {
577 %attr = pdl_interp.get_attribute "test_attr" of %root
586 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
593 pdl_interp.func @success(%root : !pdl.operation) {
595 pdl_interp.erase %root
626 pdl_interp.func @matcher(%root : !pdl.operation) {
627 %val = pdl_interp.get_result 0 of %root
632 …pdl_interp.record_match @rewriters::@success(%op1 : !pdl.operation) : benefit(1), loc([%root]) -> …
659 pdl_interp.func @matcher(%root : !pdl.operation) {
660 %vals = pdl_interp.get_results of %root : !pdl.range<value>
665 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
692 pdl_interp.func @matcher(%root : !pdl.operation) {
693 %vals = pdl_interp.get_results of %root : !pdl.range<value>
697 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
734 pdl_interp.func @matcher(%root : !pdl.operation) {
735 %val1 = pdl_interp.get_result 0 of %root
741 …interp.record_match @rewriters::@success(%op2 : !pdl.operation) : benefit(1), loc([%root]) -> ^cont
770 %root = "test.op"() : () -> i32
771 %valA = "test.op"(%root) : (i32) -> (i32)
774 %valB = "test.op"(%root) : (i32) -> (i32)
786 pdl_interp.func @matcher(%root : !pdl.operation) {
787 %val = pdl_interp.get_result 0 of %root
790 …pdl_interp.record_match @rewriters::@success(%op : !pdl.operation) : benefit(1), loc([%root]) -> ^…
820 pdl_interp.func @matcher(%root : !pdl.operation) {
821 pdl_interp.check_result_count of %root is at_least 2 -> ^next, ^end
823 %vals = pdl_interp.get_results of %root : !pdl.range<value>
826 …pdl_interp.record_match @rewriters::@success(%op : !pdl.operation) : benefit(1), loc([%root]) -> ^…
856 pdl_interp.func @matcher(%root : !pdl.operation) {
857 pdl_interp.check_result_count of %root is at_least 2 -> ^next, ^end
859 %vals = pdl_interp.get_results of %root : !pdl.range<value>
863 …pdl_interp.record_match @rewriters::@success(%op : !pdl.operation) : benefit(1), loc([%root]) -> ^…
909 pdl_interp.func @matcher(%root : !pdl.operation) {
910 pdl_interp.check_operand_count of %root is 5 -> ^pat1, ^end
913 %operand0 = pdl_interp.get_operand 0 of %root
914 %operand4 = pdl_interp.get_operand 4 of %root
920 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
927 pdl_interp.func @success(%root : !pdl.operation) {
929 pdl_interp.erase %root
960 pdl_interp.func @matcher(%root : !pdl.operation) {
961 pdl_interp.check_operand_count of %root is 2 -> ^pat1, ^end
964 %operands = pdl_interp.get_operands 0 of %root : !pdl.range<value>
965 %full_operands = pdl_interp.get_operands of %root : !pdl.range<value>
969 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
976 pdl_interp.func @success(%root : !pdl.operation) {
978 pdl_interp.erase %root
995 pdl_interp.func @matcher(%root : !pdl.operation) {
996 pdl_interp.check_operation_name of %root is "test.attr_sized_operands" -> ^pat1, ^end
999 %operands_0 = pdl_interp.get_operands 0 of %root : !pdl.range<value>
1003 %operands_0_single = pdl_interp.get_operands 0 of %root : !pdl.value
1007 %operands_1 = pdl_interp.get_operands 1 of %root : !pdl.range<value>
1011 %operands_1_single = pdl_interp.get_operands 1 of %root : !pdl.value
1015 %operands_2 = pdl_interp.get_operands 2 of %root : !pdl.range<value>
1019 %operands_2_single = pdl_interp.get_operands 2 of %root : !pdl.value
1023 %invalid_operands = pdl_interp.get_operands 50 of %root : !pdl.value
1027root, %operands_0, %operands_1, %operands_2, %operands_2_single : !pdl.operation, !pdl.range<value…
1035 …pdl_interp.func @success(%root: !pdl.operation, %operands_0: !pdl.range<value>, %operands_1: !pdl.…
1040 pdl_interp.erase %root
1064 pdl_interp.func @matcher(%root : !pdl.operation) {
1065 pdl_interp.check_result_count of %root is 5 -> ^pat1, ^end
1068 %result0 = pdl_interp.get_result 0 of %root
1069 %result4 = pdl_interp.get_result 4 of %root
1075 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1082 pdl_interp.func @success(%root : !pdl.operation) {
1084 pdl_interp.erase %root
1105 pdl_interp.func @matcher(%root : !pdl.operation) {
1106 pdl_interp.check_result_count of %root is 5 -> ^pat1, ^end
1109 %results = pdl_interp.get_results 0 of %root : !pdl.range<value>
1110 %full_results = pdl_interp.get_results of %root : !pdl.range<value>
1114 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1121 pdl_interp.func @success(%root : !pdl.operation) {
1123 pdl_interp.erase %root
1139 pdl_interp.func @matcher(%root : !pdl.operation) {
1140 pdl_interp.check_operation_name of %root is "test.attr_sized_results" -> ^pat1, ^end
1143 %results_0 = pdl_interp.get_results 0 of %root : !pdl.range<value>
1147 %results_0_single = pdl_interp.get_results 0 of %root : !pdl.value
1151 %results_1 = pdl_interp.get_results 1 of %root : !pdl.range<value>
1155 %results_1_single = pdl_interp.get_results 1 of %root : !pdl.value
1159 %results_2 = pdl_interp.get_results 2 of %root : !pdl.range<value>
1163 %results_2_single = pdl_interp.get_results 2 of %root : !pdl.value
1167 %invalid_results = pdl_interp.get_results 50 of %root : !pdl.value
1171root, %results_0, %results_1, %results_2, %results_2_single : !pdl.operation, !pdl.range<value>, !…
1179 …pdl_interp.func @success(%root: !pdl.operation, %results_0: !pdl.range<value>, %results_1: !pdl.ra…
1194 …pdl_interp.replace %root with (%new_results_0, %new_results_1, %new_results_2 : !pdl.range<value>,…
1231 pdl_interp.func @matcher(%root : !pdl.operation) {
1232 pdl_interp.check_operation_name of %root is "test.op" -> ^pat1, ^end
1235 …pdl_interp.record_match @rewriters::@failure(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1238 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(2), loc([%root]) ->…
1245 pdl_interp.func @failure(%root : !pdl.operation) {
1246 pdl_interp.erase %root
1249 pdl_interp.func @success(%root : !pdl.operation) {
1251 pdl_interp.erase %root
1267 pdl_interp.func @matcher(%root : !pdl.operation) {
1268 pdl_interp.check_operation_name of %root is "test.op" -> ^pat1, ^end
1271 %operands = pdl_interp.get_operands of %root : !pdl.range<value>
1272 %results = pdl_interp.get_results of %root : !pdl.range<value>
1274 …ers::@success(%operands, %types, %root : !pdl.range<value>, !pdl.range<type>, !pdl.operation) : be…
1281 …pdl_interp.func @success(%operands: !pdl.range<value>, %types: !pdl.range<type>, %root: !pdl.opera…
1284 pdl_interp.replace %root with (%results : !pdl.range<value>)
1307 pdl_interp.func @matcher(%root : !pdl.operation) {
1308 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
1311 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1318 pdl_interp.func @success(%root : !pdl.operation) {
1319 %operand = pdl_interp.get_operand 0 of %root
1320 pdl_interp.replace %root with (%operand : !pdl.value)
1343 pdl_interp.func @matcher(%root : !pdl.operation) {
1344 %attr = pdl_interp.get_attribute "test_attr" of %root
1348 %attr_2 = pdl_interp.get_attribute "test_attr_2" of %root
1352 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1359 pdl_interp.func @success(%root : !pdl.operation) {
1361 pdl_interp.erase %root
1380 pdl_interp.func @matcher(%root : !pdl.operation) {
1381 pdl_interp.switch_operand_count of %root to dense<[0, 1]> : vector<2xi32>(^end, ^pat) -> ^end
1384 pdl_interp.switch_operand_count of %root to dense<[0, 2]> : vector<2xi32>(^end, ^end) -> ^pat2
1387 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1394 pdl_interp.func @success(%root : !pdl.operation) {
1396 pdl_interp.erase %root
1416 pdl_interp.func @matcher(%root : !pdl.operation) {
1417 pdl_interp.switch_operation_name of %root to ["foo.op", "test.op"](^end, ^pat1) -> ^end
1420 pdl_interp.switch_operation_name of %root to ["foo.op", "bar.op"](^end, ^end) -> ^pat2
1423 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1430 pdl_interp.func @success(%root : !pdl.operation) {
1432 pdl_interp.erase %root
1451 pdl_interp.func @matcher(%root : !pdl.operation) {
1452 pdl_interp.switch_result_count of %root to dense<[0, 1]> : vector<2xi32>(^end, ^pat) -> ^end
1455 pdl_interp.switch_result_count of %root to dense<[0, 2]> : vector<2xi32>(^end, ^end) -> ^pat2
1458 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1465 pdl_interp.func @success(%root : !pdl.operation) {
1467 pdl_interp.erase %root
1486 pdl_interp.func @matcher(%root : !pdl.operation) {
1487 %attr = pdl_interp.get_attribute "test_attr" of %root
1498 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1505 pdl_interp.func @success(%root : !pdl.operation) {
1507 pdl_interp.erase %root
1526 pdl_interp.func @matcher(%root : !pdl.operation) {
1527 %results = pdl_interp.get_results of %root : !pdl.range<value>
1535 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
1542 pdl_interp.func @success(%root : !pdl.operation) {
1544 pdl_interp.erase %root