[meta] Add Instruction helpers and change its representation to make it easily copiable;

- adds helpers used by other parts of the code
- allows cheap copies by having Instruction be a lightweight ref-cloned
wrapper of the actual instruction's content.
This commit is contained in:
Benjamin Bouvier
2019-04-18 18:27:33 +02:00
parent 6acf9be540
commit d92778a19e
2 changed files with 69 additions and 26 deletions

View File

@@ -134,7 +134,7 @@ pub struct OperandKind {
/// The camel-cased name of an operand kind is also the Rust type used to represent it.
pub rust_type: String,
fields: OperandKindFields,
pub fields: OperandKindFields,
}
impl OperandKind {