diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2017-11-18 22:33:20 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-03-01 09:07:45 +0100 |
| commit | 5e7e4bdd97fc0f363762847fced34583ba47c9d0 (patch) | |
| tree | 424b42242aafa364343767bf3491e292c52ceedb /example.c | |
| parent | 29f889c3980d4f36f9f87a667b3ba597d97cbf82 (diff) | |
| download | sparse-dev-5e7e4bdd97fc0f363762847fced34583ba47c9d0.tar.gz | |
IR: remove never-generated instructions
Some of the IR instructions have been defined but are
never generated.
Remove them as they have no purposes.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'example.c')
| -rw-r--r-- | example.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -25,9 +25,7 @@ static const char *opcodes[] = { [OP_BR] = "br", [OP_CBR] = "cbr", [OP_SWITCH] = "switch", - [OP_INVOKE] = "invoke", [OP_COMPUTEDGOTO] = "jmp *", - [OP_UNWIND] = "unwind", /* Binary */ [OP_ADD] = "add", @@ -68,13 +66,9 @@ static const char *opcodes[] = { [OP_SEL] = "select", /* Memory */ - [OP_MALLOC] = "malloc", - [OP_FREE] = "free", - [OP_ALLOCA] = "alloca", [OP_LOAD] = "load", [OP_STORE] = "store", [OP_SETVAL] = "set", - [OP_GET_ELEMENT_PTR] = "getelem", /* Other */ [OP_PHI] = "phi", @@ -85,8 +79,6 @@ static const char *opcodes[] = { [OP_FPCAST] = "fpcast", [OP_PTRCAST] = "ptrcast", [OP_CALL] = "call", - [OP_VANEXT] = "va_next", - [OP_VAARG] = "va_arg", [OP_SLICE] = "slice", [OP_NOP] = "nop", [OP_DEATHNOTE] = "dead", |
