pub enum Error {
Opcode {
func: String,
opcode: String,
},
Virtual {
func: String,
opcode: String,
},
Machine {
triple: String,
},
}Expand description
A function this compiler could not write out as assembly.
Neither of these is a program’s fault and neither should ever reach a user, since a machine function that reaches here has been through the whole backend and the tests pin both of the claims below. They are errors rather than assertions because the alternative to reporting one is writing a listing that is quietly wrong, and a wrong listing is the failure section 11.1 is written to prevent.
Variants§
Opcode
An opcode the target has no description of.
Fields
Virtual
A register that is still virtual, which is a function that was never allocated.
Fields
Machine
A machine this crate cannot write assembly for.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more