mirror of
https://github.com/anoma/juvix.git
synced 2024-12-12 14:28:08 +03:00
49678b4e54
* Closes #2576 * Adds a JuvixReg transformation `InitBranchVars` which inserts assignments to initialize variables assigned in other branches. Assumes the input is in SSA form (which is preserved). * Adds tests for the `InitBranchVars` transformation. * Depends on #2647
16 lines
375 B
Haskell
16 lines
375 B
Haskell
module Reg.Transformation where
|
|
|
|
import Base
|
|
import Reg.Transformation.Identity qualified as Identity
|
|
import Reg.Transformation.InitBranchVars qualified as InitBranchVars
|
|
import Reg.Transformation.SSA qualified as SSA
|
|
|
|
allTests :: TestTree
|
|
allTests =
|
|
testGroup
|
|
"JuvixReg transformations"
|
|
[ Identity.allTests,
|
|
SSA.allTests,
|
|
InitBranchVars.allTests
|
|
]
|