macaw/macaw-ppc
Kevin Quick a3fe4a0f6b
Modify genExecInstruction to use functions for opcode semantics bodies.
Pass operand and architecture types and instead of

   case opcode of
      ADD -> case operands of
               Just GPR gpr0 :< Nil of ->
                   SSA-semantics

Generate:

    let opc_ADD operands = case operands of
                             Just GPR gpr0 :< Nil of ->
                                SSA-semantics
    in case opcode of
         ADD -> opc_ADD operand

This provides better encapsulation for the individual operands and
more specific control over the types (at the cost of a pair of
additional type specifications in the call).  This also seems to
reduce memory consumption by about half.
2018-03-05 16:02:17 -08:00
..
src/Data/Macaw Modify genExecInstruction to use functions for opcode semantics bodies. 2018-03-05 16:02:17 -08:00
tests let tests compile again 2018-03-01 11:45:59 -05:00
ChangeLog.md first commit 2017-08-28 15:48:55 -07:00
LICENSE first commit 2017-08-28 15:48:55 -07:00
macaw-ppc.cabal ppc: Remove an unused module 2017-11-27 22:53:55 -08:00
Setup.hs first commit 2017-08-28 15:48:55 -07:00