projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Formatting only
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
X86
/
Instr.hs
diff --git
a/compiler/nativeGen/X86/Instr.hs
b/compiler/nativeGen/X86/Instr.hs
index
f856313
..
00ce130
100644
(file)
--- a/
compiler/nativeGen/X86/Instr.hs
+++ b/
compiler/nativeGen/X86/Instr.hs
@@
-530,7
+530,9
@@
x86_patchRegsOfInstr instr env
_other -> panic "patchRegs: unrecognised instr"
where
_other -> panic "patchRegs: unrecognised instr"
where
+ patch1 :: (Operand -> a) -> Operand -> a
patch1 insn op = insn $! patchOp op
patch1 insn op = insn $! patchOp op
+ patch2 :: (Operand -> Operand -> a) -> Operand -> Operand -> a
patch2 insn src dst = (insn $! patchOp src) $! patchOp dst
patchOp (OpReg reg) = OpReg $! env reg
patch2 insn src dst = (insn $! patchOp src) $! patchOp dst
patchOp (OpReg reg) = OpReg $! env reg