Merge git://github.com/darchon/clash into cλash
authorMatthijs Kooijman <m.kooijman@student.utwente.nl>
Thu, 2 Jul 2009 14:47:18 +0000 (16:47 +0200)
committerMatthijs Kooijman <m.kooijman@student.utwente.nl>
Thu, 2 Jul 2009 14:47:18 +0000 (16:47 +0200)
* git://github.com/darchon/clash:
  We now output VHDL types in the correct order
  Removed the need for a special vector-type map.
  Added builtin functions: concat, reverse, iterate, iteraten, generate and generaten

Normalize.hs

index e0591a87e222c5dfff98d2df755de9bf26d091a6..0004ee3a9c01a90060173d6978abc5f7891873b6 100644 (file)
@@ -213,6 +213,7 @@ casewild expr@(Case scrut b ty alts) = do
       -- and binds that to b.
       mkextracts :: CoreBndr -> Int -> TransformMonad (Maybe (CoreBndr, CoreExpr))
       mkextracts b i =
+        -- TODO: Use free variables instead of is_wild. is_wild is a hack.
         if is_wild b || Type.isFunTy (Id.idType b) 
           -- Don't create extra bindings for binders that are already wild, or
           -- for binders that bind function types (to prevent loops with