aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ir.c
AgeCommit message (Collapse)AuthorFilesLines
2018-06-23ir: case OP_UNOP ... OP_UNOP_ENDLuc Van Oostenryck1-5/+1
Now that we have OP_UNOP & OP_UNOP_END, we can convert some long switch cases by the shorter: case OP_UNOP ... OP_UNOP_END. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-06-23add missing entry for OP_FNEG in kill_insn() & validate_insn()Luc Van Oostenryck1-1/+1
These functions must have an entry for almost all instructions but OP_FNEG was missing. Fix this by adding the entry for OP_FNEG. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-06-16ir-validate: add validation of (nbr of) phi operandsLuc Van Oostenryck1-0/+52
This patch verify that every phi-nodes have the same number of operands as the current BB has parents. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-06-16ir-validate: validate pseudo's defining instructionLuc Van Oostenryck1-0/+69
PSEUDO_REGs & PSEUDO_PHIs are defined by some instructions. This patch validate that each such pseudo have indded a valids defining instruction. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-06-16ir-validate: add framework for IR validationLuc Van Oostenryck1-0/+40
To be meaningful, the IR instructions and their relationships must obey some constraints. This patch add the framework for doing this kind of validation. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>