From 10ed01188f78e3fad4b257a0241f9a89e2fdb405 Mon Sep 17 00:00:00 2001 From: Dibyendu Majumdar Date: Sun, 22 Oct 2023 05:18:58 +0100 Subject: Revision of docs (#10) * Port updates back to chapter 2 * Update older visuals to match new format * Update older visuals to match new format * update docs --- chapter02/docs/02-post-peephole-ex1.gv | 19 +- chapter02/docs/02-post-peephole-ex1.svg | 92 +++++----- chapter02/docs/02-pre-peephole-ex1.gv | 53 +++--- chapter02/docs/02-pre-peephole-ex1.svg | 299 ++++++++++++++++---------------- 4 files changed, 233 insertions(+), 230 deletions(-) (limited to 'chapter02/docs') diff --git a/chapter02/docs/02-post-peephole-ex1.gv b/chapter02/docs/02-post-peephole-ex1.gv index a39d602b..290a1178 100644 --- a/chapter02/docs/02-post-peephole-ex1.gv +++ b/chapter02/docs/02-post-peephole-ex1.gv @@ -1,10 +1,11 @@ -digraph chapter02 -{ - Start1 [shape=box, label="Start"]; - Con213 [ label="Con2"]; - Start1 -> Con213 [style=dotted]; - Return14 [shape=box, label="Return"]; - Con213 -> Return14; - edge [color=red]; - Start1 -> Return14; +digraph chapter02 { + rankdir=BT; + subgraph cluster_Nodes { + Start1 [ shape=box style=filled fillcolor=yellow label="Start" ]; + Con213 [ label="Con2" ]; + Return14 [ shape=box style=filled fillcolor=yellow label="Return" ]; + } + Con213 -> Start1 [style=dotted]; + Return14 -> Start1 [color=red]; + Return14 -> Con213; } \ No newline at end of file diff --git a/chapter02/docs/02-post-peephole-ex1.svg b/chapter02/docs/02-post-peephole-ex1.svg index 33aa5a95..b3c42c7d 100644 --- a/chapter02/docs/02-post-peephole-ex1.svg +++ b/chapter02/docs/02-post-peephole-ex1.svg @@ -1,51 +1,53 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - chapter02 - - - - Start1 - - Start - - - - Con213 - - Con2 - - - - Start1->Con213 - - - - - - Return14 - - Return - - - - Start1->Return14 - - - - - - Con213->Return14 - - - - + + +chapter02 + + +cluster_Nodes + + + + +Start1 + +Start + + + +Con213 + +Con2 + + + +Con213->Start1 + + + + + +Return14 + +Return + + + +Return14->Start1 + + + + + +Return14->Con213 + + + + diff --git a/chapter02/docs/02-pre-peephole-ex1.gv b/chapter02/docs/02-pre-peephole-ex1.gv index d5a16616..c2eab457 100644 --- a/chapter02/docs/02-pre-peephole-ex1.gv +++ b/chapter02/docs/02-pre-peephole-ex1.gv @@ -1,27 +1,28 @@ -digraph chapter02 -{ - Start1 [shape=box, label="Start"]; - Con12 [ label="Con1"]; - Start1 -> Con12 [style=dotted]; - Con23 [ label="Con2"]; - Start1 -> Con23 [style=dotted]; - Con34 [ label="Con3"]; - Start1 -> Con34 [style=dotted]; - Mul5 [ label="Mul"]; - Con23 -> Mul5; - Con34 -> Mul5; - Con56 [ label="Con5"]; - Start1 -> Con56 [style=dotted]; - Minus7 [ label="Minus"]; - Con56 -> Minus7; - Add8 [ label="Add"]; - Mul5 -> Add8; - Minus7 -> Add8; - Add9 [ label="Add"]; - Con12 -> Add9; - Add8 -> Add9; - Return10 [shape=box, label="Return"]; - Add9 -> Return10; - edge [color=red]; - Start1 -> Return10; +digraph chapter02 { + rankdir=BT; + subgraph cluster_Nodes { + Start1 [ shape=box style=filled fillcolor=yellow label="Start" ]; + Con12 [ label="Con1" ]; + Con23 [ label="Con2" ]; + Con34 [ label="Con3" ]; + Mul5 [ label="Mul" ]; + Con56 [ label="Con5" ]; + Minus7 [ label="Minus" ]; + Add8 [ label="Add" ]; + Add9 [ label="Add" ]; + Return10 [ shape=box style=filled fillcolor=yellow label="Return" ]; + } + Con12 -> Start1 [style=dotted]; + Con23 -> Start1 [style=dotted]; + Con34 -> Start1 [style=dotted]; + Mul5 -> Con23; + Mul5 -> Con34; + Con56 -> Start1 [style=dotted]; + Minus7 -> Con56; + Add8 -> Mul5; + Add8 -> Minus7; + Add9 -> Con12; + Add9 -> Add8; + Return10 -> Start1 [color=red]; + Return10 -> Add9; } \ No newline at end of file diff --git a/chapter02/docs/02-pre-peephole-ex1.svg b/chapter02/docs/02-pre-peephole-ex1.svg index dc33c7f5..8a1ef457 100644 --- a/chapter02/docs/02-pre-peephole-ex1.svg +++ b/chapter02/docs/02-pre-peephole-ex1.svg @@ -1,156 +1,155 @@ + "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - - - chapter02 - - - - Start1 - - Start - - - - Con12 - - Con1 - - - - Start1->Con12 - - - - - - Con23 - - Con2 - - - - Start1->Con23 - - - - - - Con34 - - Con3 - - - - Start1->Con34 - - - - - - Con56 - - Con5 - - - - Start1->Con56 - - - - - - Return10 - - Return - - - - Start1->Return10 - - - - - - Add9 - - Add - - - - Con12->Add9 - - - - - - Mul5 - - Mul - - - - Con23->Mul5 - - - - - - Con34->Mul5 - - - - - - Add8 - - Add - - - - Mul5->Add8 - - - - - - Minus7 - - Minus - - - - Con56->Minus7 - - - - - - Minus7->Add8 - - - - - - Add8->Add9 - - - - - - Add9->Return10 - - - - + + +chapter02 + + +cluster_Nodes + + + + +Start1 + +Start + + + +Con12 + +Con1 + + + +Con12->Start1 + + + + + +Con23 + +Con2 + + + +Con23->Start1 + + + + + +Con34 + +Con3 + + + +Con34->Start1 + + + + + +Mul5 + +Mul + + + +Mul5->Con23 + + + + + +Mul5->Con34 + + + + + +Con56 + +Con5 + + + +Con56->Start1 + + + + + +Minus7 + +Minus + + + +Minus7->Con56 + + + + + +Add8 + +Add + + + +Add8->Mul5 + + + + + +Add8->Minus7 + + + + + +Add9 + +Add + + + +Add9->Con12 + + + + + +Add9->Add8 + + + + + +Return10 + +Return + + + +Return10->Start1 + + + + + +Return10->Add9 + + + + -- cgit v1.2.3