diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-10-16 15:28:26 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-10-16 16:08:38 +0100 |
commit | cd33eefd0467ae7ee4d22f16fcaaccfd33f18cb5 (patch) | |
tree | 30fb18578f1c5c81fef7ccc6ec5879a41fd4e5c0 /compiler/nativeGen/X86/CodeGen.hs | |
parent | 6759e5a482d927870c90efe97b820d492785a6fd (diff) | |
download | haskell-cd33eefd0467ae7ee4d22f16fcaaccfd33f18cb5.tar.gz |
Some alpha renaming
Mostly d -> g (matching DynFlag -> GeneralFlag).
Also renamed if* to when*, matching the Haskell if/when names
Diffstat (limited to 'compiler/nativeGen/X86/CodeGen.hs')
-rw-r--r-- | compiler/nativeGen/X86/CodeGen.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/nativeGen/X86/CodeGen.hs b/compiler/nativeGen/X86/CodeGen.hs index fbbc37e6c9..7ab30bf922 100644 --- a/compiler/nativeGen/X86/CodeGen.hs +++ b/compiler/nativeGen/X86/CodeGen.hs @@ -76,13 +76,13 @@ sse2Enabled = do -- calling convention specifies the use of xmm regs, -- and possibly other places. return True - ArchX86 -> return (dopt Opt_SSE2 dflags || dopt Opt_SSE4_2 dflags) + ArchX86 -> return (gopt Opt_SSE2 dflags || gopt Opt_SSE4_2 dflags) _ -> panic "sse2Enabled: Not an X86* arch" sse4_2Enabled :: NatM Bool sse4_2Enabled = do dflags <- getDynFlags - return (dopt Opt_SSE4_2 dflags) + return (gopt Opt_SSE4_2 dflags) if_sse2 :: NatM a -> NatM a -> NatM a if_sse2 sse2 x87 = do @@ -2291,7 +2291,7 @@ outOfLineCmmOp mop res args genSwitch :: DynFlags -> CmmExpr -> [Maybe BlockId] -> NatM InstrBlock genSwitch dflags expr ids - | dopt Opt_PIC dflags + | gopt Opt_PIC dflags = do (reg,e_code) <- getSomeReg expr lbl <- getNewLabelNat @@ -2352,7 +2352,7 @@ createJumpTable :: DynFlags -> [Maybe BlockId] -> Section -> CLabel -> GenCmmDecl (Alignment, CmmStatics) h g createJumpTable dflags ids section lbl = let jumpTable - | dopt Opt_PIC dflags = + | gopt Opt_PIC dflags = let jumpTableEntryRel Nothing = CmmStaticLit (CmmInt 0 (wordWidth dflags)) jumpTableEntryRel (Just blockid) |