From a17889597792b1f2db29bdb92f4d1ee3a677d258 Mon Sep 17 00:00:00 2001 From: Max Bolingbroke Date: Thu, 31 Jul 2008 01:23:36 +0000 Subject: [PATCH] Document MachOp --- compiler/cmm/MachOp.hs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/cmm/MachOp.hs b/compiler/cmm/MachOp.hs index f2aadcf..422ed5e 100644 --- a/compiler/cmm/MachOp.hs +++ b/compiler/cmm/MachOp.hs @@ -480,10 +480,10 @@ cLongRep = I64 -- isCommutableMachOp {- | -Returns 'True' if the MachOp has commutable arguments. This is used +Returns @True@ if the MachOp has commutable arguments. This is used in the platform-independent Cmm optimisations. -If in doubt, return 'False'. This generates worse code on the +If in doubt, return @False@. This generates worse code on the native routes, but is otherwise harmless. -} isCommutableMachOp :: MachOp -> Bool @@ -504,10 +504,10 @@ isCommutableMachOp mop = -- isAssociativeMachOp {- | -Returns 'True' if the MachOp is associative (i.e. @(x+y)+z == x+(y+z)@) +Returns @True@ if the MachOp is associative (i.e. @(x+y)+z == x+(y+z)@) This is used in the platform-independent Cmm optimisations. -If in doubt, return 'False'. This generates worse code on the +If in doubt, return @False@. This generates worse code on the native routes, but is otherwise harmless. -} isAssociativeMachOp :: MachOp -> Bool @@ -524,7 +524,7 @@ isAssociativeMachOp mop = -- isComparisonMachOp {- | -Returns 'True' if the MachOp is a comparison. +Returns @True@ if the MachOp is a comparison. If in doubt, return False. This generates worse code on the native routes, but is otherwise harmless. -- 1.7.10.4