zhc_ir 0.1.7

Graph-based intermediate representation framework with dialect support
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::{AnnOpRef, Annotation, Dialect};

/// Annotated producing operation and return position of a value.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct AnnValOriginRef<'s, 'ann, D: Dialect, OpAnn: Annotation, ValAnn: Annotation> {
    /// Annotated reference to the operation that produces this value.
    pub opref: AnnOpRef<'s, 'ann, D, OpAnn, ValAnn>,
    /// Zero-based index into the producing operation's return values.
    pub position: u8,
}