Add raw_bitcast instruction

Casts bits as a different type of the same width with no change to the data (unlike bitcast)
This commit is contained in:
Andrew Brown
2019-07-11 11:07:26 -07:00
committed by Dan Gohman
parent 5f0e5567c1
commit 61772e9775
5 changed files with 61 additions and 10 deletions

View File

@@ -50,6 +50,12 @@ impl OperandKinds {
}
}
impl From<Vec<OperandKind>> for OperandKinds {
fn from(kinds: Vec<OperandKind>) -> Self {
OperandKinds(kinds)
}
}
pub fn define() -> Definitions {
let mut all_instructions = AllInstructions::new();