simonmar    2004/02/10 09:06:53 PST

  Modified files:        (Branch: backend-hacking-branch)
    ghc/compiler/nativeGen AsmCodeGen.lhs MachCodeGen.hs 
  Log:
  Fix callish primops in the native code generator.
  
  CmmCalls must have their results turned into real registers; this
  might involve injecting extra store instructions into the statememnt
  list if the original result was a GlobalReg that is actually tied to a
  location in the register table.
  
  An alternative would be to have a CmmLValue type, and use that on the
  lhs of a CmmAssign and CmmCall - I decided not to go that route
  because it made code generation harder: I had to deal with memory
  stores both for CmmAssign and CmmCall, and the latter just ended up
  generating an extra store anyhow, so the result is the same.
  
  Revision  Changes    Path
  1.60.6.12 +62 -20    fptools/ghc/compiler/nativeGen/AsmCodeGen.lhs
  1.1.2.21  +70 -69    fptools/ghc/compiler/nativeGen/Attic/MachCodeGen.hs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to