Returns true if the operand has an immediate kind.
(&self)
| 76 | |
| 77 | /// Returns true if the operand has an immediate kind. |
| 78 | pub fn is_immediate(&self) -> bool { |
| 79 | matches!( |
| 80 | self.kind.fields, |
| 81 | OperandKindFields::ImmEnum(_) | OperandKindFields::ImmValue |
| 82 | ) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | pub type EnumValues = HashMap<&'static str, &'static str>; |