patch applied (ghc): Make CmmProc take CmmFormals as argument

Simon Marlow simonmar at microsoft.com
Tue Jul 3 10:42:25 EDT 2007


Tue May 22 08:20:08 PDT 2007  Michael D. Adams <t-madams at microsoft.com>
  * 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.)

    M ./compiler/cmm/Cmm.hs -3 +3
    M ./compiler/cmm/PprCmm.hs -1 +4
    M ./compiler/codeGen/CgInfoTbls.hs -2 +2
    M ./compiler/codeGen/CgMonad.lhs -1 +1



More information about the Cvs-ghc mailing list