[Git][ghc/ghc][wip/torsten.schmits/23612] add breakpoint fvs to free names for dependency analysis
Torsten Schmits (@torsten.schmits)
gitlab at gitlab.haskell.org
Fri Sep 29 02:02:42 UTC 2023
Torsten Schmits pushed to branch wip/torsten.schmits/23612 at Glasgow Haskell Compiler / GHC
Commits:
2461aff3 by Torsten Schmits at 2023-09-29T04:02:28+02:00
add breakpoint fvs to free names for dependency analysis
- - - - -
1 changed file:
- compiler/GHC/Iface/Syntax.hs
Changes:
=====================================
compiler/GHC/Iface/Syntax.hs
=====================================
@@ -1844,7 +1844,7 @@ freeNamesIfExpr (IfaceTuple _ as) = fnList freeNamesIfExpr as
freeNamesIfExpr (IfaceLam (b,_) body) = freeNamesIfBndr b &&& freeNamesIfExpr body
freeNamesIfExpr (IfaceApp f a) = freeNamesIfExpr f &&& freeNamesIfExpr a
freeNamesIfExpr (IfaceCast e co) = freeNamesIfExpr e &&& freeNamesIfCoercion co
-freeNamesIfExpr (IfaceTick _ e) = freeNamesIfExpr e
+freeNamesIfExpr (IfaceTick t e) = freeNamesIfTickish t &&& freeNamesIfExpr e
freeNamesIfExpr (IfaceECase e ty) = freeNamesIfExpr e &&& freeNamesIfType ty
freeNamesIfExpr (IfaceCase s _ alts)
= freeNamesIfExpr s &&& fnList fn_alt alts &&& fn_cons alts
@@ -1891,6 +1891,11 @@ freeNamesIfaceTyConParent IfNoParent = emptyNameSet
freeNamesIfaceTyConParent (IfDataInstance ax tc tys)
= unitNameSet ax &&& freeNamesIfTc tc &&& freeNamesIfAppArgs tys
+freeNamesIfTickish :: IfaceTickish -> NameSet
+freeNamesIfTickish (IfaceBreakpoint _ fvs _) =
+ fnList freeNamesIfExpr fvs
+freeNamesIfTickish _ = emptyNameSet
+
-- helpers
(&&&) :: NameSet -> NameSet -> NameSet
(&&&) = unionNameSet
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2461aff3df9e78c2d920024bce17f30ede124991
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/2461aff3df9e78c2d920024bce17f30ede124991
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230928/2951a076/attachment-0001.html>
More information about the ghc-commits
mailing list