aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/opcode.def
AgeCommit message (Collapse)AuthorFilesLines
2020-03-20add instruction OP_UNREACHLuc Van Oostenryck1-0/+1
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-08-26opcode: add OPF_TARGETLuc Van Oostenryck1-82/+82
Quite a bit of code needs to know, in one way or another, if a given instruction produces a result (insn->target) or not. However, this information is not explicit and when needed it must be retrieved with correct switch/case statements. These statements need to be updated when a new instruction is added. Now that there is a table containing some of the instructions properties, add to this table a flag telling if the instruction produces a result or not. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-08-26opcode: add arity infoLuc Van Oostenryck1-82/+82
The arity is a useful property of each opcode. Add this information to the opcode definitions. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-08-26opcode: centralize opcode definitionLuc Van Oostenryck1-0/+114
Opcodes are defined in linearize.c:enum opcode. The file opcode.c also contains a table with opcodes properties. Centralize these definitions into a single file: opcode.def that will then be reused for enum opcode & the table. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>