diff options
author | Michael D. Adams <t-madams@microsoft.com> | 2007-05-22 15:20:08 +0000 |
---|---|---|
committer | Michael D. Adams <t-madams@microsoft.com> | 2007-05-22 15:20:08 +0000 |
commit | 418175d3c36ca51495d9dfb085fb01711e4c38f9 (patch) | |
tree | 24feb6d2c8a75e36b82081be8073454c2f5161a9 /compiler/cmm/Cmm.hs | |
parent | 77cc133da7af6961add020cab1ba9eadee3a0b67 (diff) | |
download | haskell-418175d3c36ca51495d9dfb085fb01711e4c38f9.tar.gz |
Make CmmProc take CmmFormals as argument
Since a CmmCall returns CmmFormals which may include
global registers (and indeed one place in the code
returns the results of a CmmCall into BaseReg) and
since CPS conversion will change those return slots
into formal arguments for the continuation of the call,
CmmProc has to have CmmFormals for the formal arguments.
Oddly, the old code never made use of procedure arguments
so this change only effects the types and not any of the code.
(Because [] is both of type [LocalReg] and CmmFormals.)
Diffstat (limited to 'compiler/cmm/Cmm.hs')
-rw-r--r-- | compiler/cmm/Cmm.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/cmm/Cmm.hs b/compiler/cmm/Cmm.hs index 0d1876e0e6..74387504c5 100644 --- a/compiler/cmm/Cmm.hs +++ b/compiler/cmm/Cmm.hs @@ -58,7 +58,7 @@ data GenCmmTop d i = CmmProc [d] -- Info table, may be empty CLabel -- Used to generate both info & entry labels - [LocalReg] -- Argument locals live on entry (C-- procedure params) + CmmFormals -- Argument locals live on entry (C-- procedure params) [GenBasicBlock i] -- Code, may be empty. The first block is -- the entry point. The order is otherwise initially -- unimportant, but at some point the code gen will @@ -132,10 +132,10 @@ data CmmStmt -- Undefined outside range, and when there's a Nothing | CmmJump CmmExpr -- Jump to another function, - CmmActuals -- with these parameters. + CmmActuals -- with these parameters. | CmmReturn -- Return from a function, - CmmActuals -- with these return values. + CmmActuals -- with these return values. type CmmActuals = [(CmmExpr,MachHint)] type CmmFormals = [(CmmReg,MachHint)] |