25 lines · plain
1// RUN: mlir-opt -view-op-graph %s -o %t 2>&1 | FileCheck -check-prefix=DFG %s2 3// DFG-LABEL: digraph G {4// DFG-NEXT: compound = true;5// DFG-NEXT: subgraph cluster_1 {6// DFG-NEXT: v2 [label = " ", shape = plain];7// DFG-NEXT: label = "builtin.module : ()\l";8// DFG-NEXT: subgraph cluster_3 {9// DFG-NEXT: v4 [label = " ", shape = plain];10// DFG-NEXT: label = "";11// DFG-NEXT: v5 [fillcolor = "0.000000 0.3 0.95", label = "{{\{\{}}<arg_c0> %c0|<arg_c1> %c1}|arith.addi\l\loverflowFlags: #arith.overflow\<none...\l|{<res_0> %0 index}}", shape = Mrecord, style = filled];12// DFG-NEXT: v6 [fillcolor = "0.333333 0.3 0.95", label = "{arith.constant\l\lvalue: 0 : index\l|{<res_c0> %c0 index}}", shape = Mrecord, style = filled];13// DFG-NEXT: v7 [fillcolor = "0.333333 0.3 0.95", label = "{arith.constant\l\lvalue: 1 : index\l|{<res_c1> %c1 index}}", shape = Mrecord, style = filled];14// DFG-NEXT: }15// DFG-NEXT: }16// DFG-NEXT: v6:res_c0:s -> v5:arg_c0:n[style = solid];17// DFG-NEXT: v7:res_c1:s -> v5:arg_c1:n[style = solid];18// DFG-NEXT: }19 20module {21 %add = arith.addi %c0, %c1 : index22 %c0 = arith.constant 0 : index23 %c1 = arith.constant 1 : index24}25