summaryrefslogtreecommitdiff
path: root/compiler/GHC/Cmm/Dataflow.hs
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-03-23 11:35:45 +0100
committerAndreas Klebinger <klebinger.andreas@gmx.at>2022-03-23 11:35:45 +0100
commitd50d2e071915f588716213ca6bbd0257a39a8f75 (patch)
tree80273d61bbd8f9f3c884f807e6e92cf580f3a0bb /compiler/GHC/Cmm/Dataflow.hs
parent80f9133e128abc61913d264ecd8b102517b266f5 (diff)
downloadhaskell-wip/andreask/ghc_ext_width.tar.gz
Partially implemented subword extension pass.wip/andreask/ghc_ext_width
Diffstat (limited to 'compiler/GHC/Cmm/Dataflow.hs')
-rw-r--r--compiler/GHC/Cmm/Dataflow.hs11
1 files changed, 10 insertions, 1 deletions
diff --git a/compiler/GHC/Cmm/Dataflow.hs b/compiler/GHC/Cmm/Dataflow.hs
index ad1c37ace2..9883853e4a 100644
--- a/compiler/GHC/Cmm/Dataflow.hs
+++ b/compiler/GHC/Cmm/Dataflow.hs
@@ -27,7 +27,7 @@ module GHC.Cmm.Dataflow
, Fact, FactBase
, getFact, mkFactBase
, analyzeCmmFwd, analyzeCmmBwd
- , rewriteCmmBwd
+ , rewriteCmmFwd, rewriteCmmBwd
, changedIf
, joinOutFacts
, joinFacts
@@ -175,6 +175,15 @@ rewriteCmmBwd
-> UniqSM (GenCmmGraph node, FactBase f)
rewriteCmmBwd = rewriteCmm Bwd
+rewriteCmmFwd
+ :: (NonLocal node)
+ => DataflowLattice f
+ -> RewriteFun' node f
+ -> GenCmmGraph node
+ -> FactBase f
+ -> UniqSM (GenCmmGraph node, FactBase f)
+rewriteCmmFwd = rewriteCmm Fwd
+
rewriteCmm
:: (NonLocal node)
=> Direction