Wed Jun 30 11:11:57 PDT 2010 David Terei <davidte...@gmail.com> * LLVM: Use getelementptr instruction for a lot of situations LLVM supports creating pointers in two ways, firstly through pointer arithmetic (by casting between pointers and ints) and secondly using the getelementptr instruction. The second way is preferable as it gives LLVM more information to work with. This patch changes a lot of pointer related code from the first method to the getelementptr method.
M ./compiler/llvmGen/LlvmCodeGen/CodeGen.hs -26 +170 M ./compiler/llvmGen/LlvmCodeGen/Regs.hs -5 +1 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20100630181157-e1038-d2f573f96b6c0baa596def5e322e24c8718af6fc.gz _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc