Generate an INST_PREDICATES table for each ISA.

Instead of generating a single `check_instp()` function, create an array
of individual function pointers for checking instruction predicates.

This makes explicit the jump table in the old check_instp() method and
it gives us a way of determining the number of instruction predicates
that exists.
This commit is contained in:
Jakob Stoklund Olesen
2017-07-24 14:13:35 -07:00
parent a31dd3aa7a
commit f643e7e752
8 changed files with 35 additions and 36 deletions

View File

@@ -1,6 +1,5 @@
//! Encoding tables for ARM64 ISA.
use ir::InstructionData;
use ir::types;
use isa::EncInfo;
use isa::constraints::*;