cvs commit: fptools/ghc/compiler/nativeGen AsmCodeGen.lhs
simonmar at glass.cse.ogi.edu
Tue Feb 10 09:06:54 EST 2004
simonmar 2004/02/10 09:06:53 PST
Modified files: (Branch: backend-hacking-branch)
ghc/compiler/nativeGen AsmCodeGen.lhs MachCodeGen.hs
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
220.127.116.11 +62 -20 fptools/ghc/compiler/nativeGen/AsmCodeGen.lhs
18.104.22.168 +70 -69 fptools/ghc/compiler/nativeGen/Attic/MachCodeGen.hs
More information about the Cvs-ghc