Lib.RiscV module
MIF08, CAP, CodeGeneration, RiscV API Functions to define instructions.
- Lib.RiscV.conditional_jump(label: Label, op1: Operand, cond: Condition, op2: Operand)[source]
Add a conditional jump to the code. This is a wrapper around bge, bgt, beq, … c is a Condition, like Condition(‘bgt’), Condition(MiniCParser.EQ), …
- Lib.RiscV.jump(label: Label) AbsoluteJump[source]
Unconditional jump to label.