orco 0.0.1-prealpha

A compiler backend interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::codegen;

/// Use this when a feature is not supported. Default implementation
pub struct Unsupported;

impl codegen::ACFCodegen for Unsupported {
    fn label(&mut self, _: codegen::Label) {
        unimplemented!("arbitrary control flow is not supported by this backend");
    }

    fn jump(&mut self, _: codegen::Label) {
        unimplemented!("arbitrary control flow is not supported by this backend");
    }

    fn cjump(&mut self, _: codegen::Operand, _: u128, _: bool, _: codegen::Label) {
        unimplemented!("arbitrary control flow is not supported by this backend");
    }
}