Debian Codegraph @

lib/mlrisc-lib/MLRISC/ppc/backpatch/ppcDelaySlots.sml

raw
1 (*
2 * This file was automatically generated by MDGen (v3.0)
3 * from the machine description file "ppc/ppc.md".
4 *)
5
6
7 functor PPCDelaySlots(structure I : PPCINSTR
8 structure P : INSN_PROPERTIES (* where I = I *)
9 where type I.addressing_mode = I.addressing_mode
10 and type I.ea = I.ea
11 and type I.instr = I.instr
12 and type I.instruction = I.instruction
13 and type I.operand = I.operand
14 ) : DELAY_SLOT_PROPERTIES =
15 struct
16 structure I = I
17 datatype delay_slot = D_NONE | D_ERROR | D_ALWAYS | D_TAKEN | D_FALLTHRU
18
19 fun error msg = MLRiscErrorMsg.error("PPCDelaySlots",msg)
20 val delaySlotSize = 4
21 fun delaySlot {instr, backward} = let
22 fun delaySlot instr =
23 (
24 case instr of
25 _ => {nop=true, n=false, nOn=D_ERROR, nOff=D_NONE}
26 )
27 in delaySlot instr
28 end
29
30 fun enableDelaySlot _ = error "enableDelaySlot"
31 fun conflict _ = error "conflict"
32 fun delaySlotCandidate {jmp, delaySlot} = let
33 fun delaySlotCandidate delaySlot =
34 (
35 case delaySlot of
36 _ => true
37 )
38 in delaySlotCandidate delaySlot
39 end
40
41 fun setTarget _ = error "setTarget"
42 end
43