[meta] Refactor instruction predicates to distinguish format and type checks;

Also add the instruction format name in format predicates, since they're
going to be used when generating encodings.
This commit is contained in:
Benjamin Bouvier
2019-05-29 17:20:34 +02:00
parent f1d1d1e960
commit 18fb87cd9c
2 changed files with 69 additions and 19 deletions

View File

@@ -449,6 +449,7 @@ impl Apply {
continue;
}
pred = pred.and(InstructionPredicate::new_is_field_equal(
iform.name,
&format_field,
arg.to_rust_code(var_pool),
));