Neil Brown
8f767ff0d4
Made all the imports of Data.Generics have an import list
...
This makes sure that we catch all leftover instances of using SYB to do generic operations that we should be using Polyplate for instead. Most modules should only import Data, and possibly Typeable.
2009-04-09 15:36:37 +00:00
Neil Brown
e61a23855a
Fixed all the conflicts while merging into the Polyplate branch
2009-04-09 11:01:39 +00:00
Neil Brown
4672675ba8
Removed the GenericUtils module, now that everything uses Polyplate instead
2009-01-12 18:03:41 +00:00
Neil Brown
1d500b46ae
Moved the SYB-based route stuff back into FlowUtils, and trimmed down the export list of GenericUtils
2008-12-15 10:36:48 +00:00
Neil Brown
c315352647
Added information in the flow graph edges as to when a condition becomes non-usable (e.g. when the branches of an IF merge again)
2009-02-09 16:57:13 +00:00
Neil Brown
7f8ced3c3a
Upgraded the Par edges in the flow graph from Int to Integer, which makes the design a bit nicer
2009-02-09 16:08:59 +00:00
Neil Brown
a75a195654
Fixed a bug in the flow utils code that was using the old name stack when removing an element
2009-02-08 19:11:58 +00:00
Neil Brown
b08ac42547
Augmented the flow graph building to store in each node a list of the names defined at that point
2009-02-08 18:41:30 +00:00
Neil Brown
3da315497a
Tidied up the flow graph stuff a little by changing the quintuple state into a record type
2009-02-08 18:17:57 +00:00
Neil Brown
2a15f4ef5f
Filled in all the gaps such that the CheckTest tests now run (including some debug output, for now)
...
One of the tests fails at the moment because the specification node has two entries associated with it in the flowgraph. One is the scope-in and one is the scope-out. I think the analysis is currently picking the scope-out node and looking beyond that, where -- surprise, surprise -- the variable is not used again. So I need some easy way of telling the flow analyses which of the two nodes I want to start from, in this case and other ones where I also add two nodes related to the same point in the AST.
2008-11-12 16:54:00 +00:00
Neil Brown
76cfb4d8f5
Added route-identifiers for blank AST modifiers in the flow graph
2008-11-12 16:47:15 +00:00
Neil Brown
dc030acabe
Changed the FlowGraph stuff to use the new Route type (that includes identifiers) rather than the bare functions as it used to
2008-11-10 14:01:30 +00:00
Neil Brown
3a5881c14f
Added an optional flag to the ESeq edge label, ready to be used to indicate whether a condition was true on this branch or not
2008-06-06 18:34:50 +00:00
Neil Brown
cbe460f306
Added a new part to UsageLabel for conditions in nodes, and added a new corresponding labelling function for nodes
2008-06-06 18:32:47 +00:00
Neil Brown
ac3d1ed42a
Reordered the type parameters for the FNode' type in the flow graph, and made it a functor over the label
2008-06-05 20:11:13 +00:00
Neil Brown
41ff60cb78
Removed the Rep constructor from Structured and instead added a Rep constructor to SpecType
...
This way, all replicators are declared like other names, and their scope is considered replicated. This simplifies the code a little.
Fixes #55
2008-06-04 17:00:43 +00:00
Neil Brown
4b6fa48cd3
Labelled some of the data type parameters better in the FlowUtils module
2008-06-01 17:58:01 +00:00
Neil Brown
0746219984
Added support for recording terminator nodes (as well as root nodes) while building the flow graph
2008-05-30 17:15:52 +00:00
Neil Brown
60eb320ee0
Separated FlowGraph into two modules (the new one being FlowUtils)
2008-05-23 14:52:25 +00:00