genStore :: CmmExpr -> CmmExpr -> LlvmM StmtData

-- First we try to detect a few common cases and produce better code for
-- these then the default case. We are mostly trying to detect Cmm code
-- like I32[Sp + n] and use 'getelementptr' operations instead of the
-- generic case that uses casts and pointer arithmetic
genStore addr@(CmmReg (CmmGlobal r)) val
    = genStore_fast addr r 0 val
genStore :: CmmExpr -> CmmExpr -> LlvmM StmtData
genStore addr@(CmmReg (CmmGlobal r)) val
    = genStore_fast addr r 0 val
genStore addr@(CmmReg (CmmGlobal r)) val
    = genStore_fast addr r 0 val