Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/a1ebe37d8394e35d0a29f21511626d0895db634a >--------------------------------------------------------------- commit a1ebe37d8394e35d0a29f21511626d0895db634a Author: Simon Marlow <marlo...@gmail.com> Date: Mon Nov 12 14:01:22 2012 +0000 handle MO_Touch, and generate no code for it. >--------------------------------------------------------------- compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs index ef9fc2b..fd9d701 100644 --- a/compiler/llvmGen/LlvmCodeGen/CodeGen.hs +++ b/compiler/llvmGen/LlvmCodeGen/CodeGen.hs @@ -184,6 +184,9 @@ genCall env (PrimTarget MO_WriteBarrier) _ _ | getLlvmVer env > 29 = barrier env | otherwise = oldBarrier env +genCall env (PrimTarget MO_Touch) _ _ + = return (env, nilOL, []) + -- Handle popcnt function specifically since GHC only really has i32 and i64 -- types and things like Word8 are backed by an i32 and just present a logical -- i8 range. So we must handle conversions from i32 to i8 explicitly as LLVM _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc