summaryrefslogtreecommitdiff
path: root/chapter04/docs/04-post-peephole.gv
diff options
context:
space:
mode:
Diffstat (limited to 'chapter04/docs/04-post-peephole.gv')
-rw-r--r--chapter04/docs/04-post-peephole.gv41
1 files changed, 41 insertions, 0 deletions
diff --git a/chapter04/docs/04-post-peephole.gv b/chapter04/docs/04-post-peephole.gv
new file mode 100644
index 00000000..22f55468
--- /dev/null
+++ b/chapter04/docs/04-post-peephole.gv
@@ -0,0 +1,41 @@
+digraph chapter04 {
+/*
+return 1+arg+2; #showGraph;
+*/
+ rankdir=BT;
+ subgraph cluster_Nodes {
+ Start1 [ shape=plaintext label=<
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
+ <TR><TD BGCOLOR="yellow">Start</TD></TR>
+ <TR><TD>
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
+ <TR><TD PORT="p0" BGCOLOR="yellow">$ctrl</TD><TD PORT="p1">arg</TD></TR>
+ </TABLE>
+ </TD></TR>
+ </TABLE>>
+ ];
+ Con_9 [ label="#3" ];
+ Add10 [ label="Add" ];
+ Return11 [ shape=box style=filled fillcolor=yellow label="Return" ];
+ }
+ node [shape=plaintext];
+ subgraph cluster_0 {
+ scope0 [label=<
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
+ <TR><TD BGCOLOR="cyan">0</TD><TD PORT="scope0_$ctrl">$ctrl</TD><TD PORT="scope0_arg">arg</TD></TR>
+ </TABLE>>];
+ subgraph cluster_1 {
+ scope1 [label=<
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
+ <TR><TD BGCOLOR="cyan">1</TD></TR>
+ </TABLE>>];
+ }
+ }
+ Add10 -> Start1:p1;
+ Add10 -> Con_9;
+ Return11 -> Start1:p0 [color=red];
+ Return11 -> Add10;
+ edge [style=dashed color=cornflowerblue];
+ scope0:"scope0_$ctrl" -> Start1:p0;
+ scope0:"scope0_arg" -> Start1:p1;
+} \ No newline at end of file