• Home
  • Raw
  • Download

Lines Matching refs:root

13   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 func @success(%root : !pdl.operation) {
29 pdl_interp.erase %root
48 func @matcher(%root : !pdl.operation) {
49 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
52 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
59 func @success(%root : !pdl.operation) {
60 %operand = pdl_interp.get_operand 0 of %root
61 pdl_interp.apply_rewrite "rewriter"[42](%operand : !pdl.value) on %root
82 func @matcher(%root : !pdl.operation) {
84 %attr = pdl_interp.get_attribute "test_attr" of %root
88 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
95 func @success(%root : !pdl.operation) {
97 pdl_interp.erase %root
116 func @matcher(%root : !pdl.operation) {
117 pdl_interp.check_operation_name of %root is "test.op" -> ^pat1, ^end
123 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(2), loc([%root]) ->…
130 func @success(%root : !pdl.operation) {
132 pdl_interp.erase %root
151 func @matcher(%root : !pdl.operation) {
152 %attr = pdl_interp.get_attribute "test_attr" of %root
156 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
163 func @success(%root : !pdl.operation) {
165 pdl_interp.erase %root
184 func @matcher(%root : !pdl.operation) {
185 pdl_interp.check_operand_count of %root is 1 -> ^pat, ^end
188 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
195 func @success(%root : !pdl.operation) {
197 pdl_interp.erase %root
218 func @matcher(%root : !pdl.operation) {
219 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
222 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
229 func @success(%root : !pdl.operation) {
231 pdl_interp.erase %root
250 func @matcher(%root : !pdl.operation) {
251 pdl_interp.check_result_count of %root is 1 -> ^pat, ^end
254 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
261 func @success(%root : !pdl.operation) {
263 pdl_interp.erase %root
282 func @matcher(%root : !pdl.operation) {
283 %attr = pdl_interp.get_attribute "test_attr" of %root
291 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
298 func @success(%root : !pdl.operation) {
300 pdl_interp.erase %root
327 func @matcher(%root : !pdl.operation) {
328 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
331 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
338 func @success(%root : !pdl.operation) {
339 %op = pdl_interp.create_native "creator"(%root : !pdl.operation) : !pdl.operation
340 pdl_interp.erase %root
363 func @matcher(%root : !pdl.operation) {
364 %attr = pdl_interp.get_attribute "test_attr" of %root
373 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
380 func @success(%root : !pdl.operation) {
382 pdl_interp.erase %root
425 func @matcher(%root : !pdl.operation) {
426 pdl_interp.check_operand_count of %root is 5 -> ^pat1, ^end
429 %operand0 = pdl_interp.get_operand 0 of %root
430 %operand4 = pdl_interp.get_operand 4 of %root
436 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
443 func @success(%root : !pdl.operation) {
445 pdl_interp.erase %root
476 func @matcher(%root : !pdl.operation) {
477 pdl_interp.check_result_count of %root is 5 -> ^pat1, ^end
480 %result0 = pdl_interp.get_result 0 of %root
481 %result4 = pdl_interp.get_result 4 of %root
487 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
494 func @success(%root : !pdl.operation) {
496 pdl_interp.erase %root
536 func @matcher(%root : !pdl.operation) {
537 pdl_interp.check_operation_name of %root is "test.op" -> ^pat1, ^end
540 …pdl_interp.record_match @rewriters::@failure(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
543 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(2), loc([%root]) ->…
550 func @failure(%root : !pdl.operation) {
551 pdl_interp.erase %root
554 func @success(%root : !pdl.operation) {
556 pdl_interp.erase %root
575 func @matcher(%root : !pdl.operation) {
576 pdl_interp.check_operation_name of %root is "test.op" -> ^pat, ^end
579 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
586 func @success(%root : !pdl.operation) {
587 %operand = pdl_interp.get_operand 0 of %root
588 pdl_interp.replace %root with (%operand)
611 func @matcher(%root : !pdl.operation) {
612 %attr = pdl_interp.get_attribute "test_attr" of %root
616 %attr_2 = pdl_interp.get_attribute "test_attr_2" of %root
620 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
627 func @success(%root : !pdl.operation) {
629 pdl_interp.erase %root
648 func @matcher(%root : !pdl.operation) {
649 pdl_interp.switch_operand_count of %root to dense<[0, 1]> : vector<2xi32>(^end, ^pat) -> ^end
652 pdl_interp.switch_operand_count of %root to dense<[0, 2]> : vector<2xi32>(^end, ^end) -> ^pat2
655 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
662 func @success(%root : !pdl.operation) {
664 pdl_interp.erase %root
684 func @matcher(%root : !pdl.operation) {
685 pdl_interp.switch_operation_name of %root to ["foo.op", "test.op"](^end, ^pat1) -> ^end
688 pdl_interp.switch_operation_name of %root to ["foo.op", "bar.op"](^end, ^end) -> ^pat2
691 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
698 func @success(%root : !pdl.operation) {
700 pdl_interp.erase %root
719 func @matcher(%root : !pdl.operation) {
720 pdl_interp.switch_result_count of %root to dense<[0, 1]> : vector<2xi32>(^end, ^pat) -> ^end
723 pdl_interp.switch_result_count of %root to dense<[0, 2]> : vector<2xi32>(^end, ^end) -> ^pat2
726 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
733 func @success(%root : !pdl.operation) {
735 pdl_interp.erase %root
754 func @matcher(%root : !pdl.operation) {
755 %attr = pdl_interp.get_attribute "test_attr" of %root
766 …pdl_interp.record_match @rewriters::@success(%root : !pdl.operation) : benefit(1), loc([%root]) ->…
773 func @success(%root : !pdl.operation) {
775 pdl_interp.erase %root