pub struct SemanticOpDesc { /* private fields */ }Expand description
One mathematical or domain operation before executable lowering.
Implementations§
Source§impl SemanticOpDesc
impl SemanticOpDesc
Sourcepub const fn id(&self) -> SemanticOpId
pub const fn id(&self) -> SemanticOpId
Return the graph-local operation identity.
Sourcepub const fn contract_hash(&self) -> u64
pub const fn contract_hash(&self) -> u64
Return the schema-derived operation contract hash.
Sourcepub const fn differentiation(&self) -> OpDifferentiation
pub const fn differentiation(&self) -> OpDifferentiation
Return the differentiation behavior.
Sourcepub const fn lowering(&self) -> OpLowering
pub const fn lowering(&self) -> OpLowering
Return the requested lowering family.
Sourcepub const fn control_flow(&self) -> OpControlFlow
pub const fn control_flow(&self) -> OpControlFlow
Return the semantic control-flow class.
Sourcepub fn inputs(&self) -> &[Option<SemanticValueId>]
pub fn inputs(&self) -> &[Option<SemanticValueId>]
Return logical input identities; None preserves an absent optional slot.
Sourcepub fn outputs(&self) -> &[SemanticValueId]
pub fn outputs(&self) -> &[SemanticValueId]
Return logical output identities.
Sourcepub fn attributes(&self) -> &[OpAttribute]
pub fn attributes(&self) -> &[OpAttribute]
Return ordered non-value semantic inputs.
Sourcepub fn accesses(&self) -> &[SemanticValueAccess]
pub fn accesses(&self) -> &[SemanticValueAccess]
Return merged logical accesses.
Sourcepub fn mutated_inputs(&self) -> &[SemanticValueId]
pub fn mutated_inputs(&self) -> &[SemanticValueId]
Return semantically mutated inputs.
Sourcepub fn aliases(&self) -> &[SemanticAliasDesc]
pub fn aliases(&self) -> &[SemanticAliasDesc]
Return output-to-input aliases.
Sourcepub fn control_dependencies(&self) -> &[SemanticOpId]
pub fn control_dependencies(&self) -> &[SemanticOpId]
Return explicit control dependencies.
Sourcepub const fn optional_input_mask(&self) -> u8
pub const fn optional_input_mask(&self) -> u8
Return the fixed-input optionality mask preserved from the schema.
Sourcepub const fn backward_of(&self) -> Option<SemanticOpId>
pub const fn backward_of(&self) -> Option<SemanticOpId>
Return the forward operation owning this backward operation.
Sourcepub const fn backward_sequence(&self) -> u64
pub const fn backward_sequence(&self) -> u64
Return the owning autograd tape sequence.
Trait Implementations§
Source§impl Clone for SemanticOpDesc
impl Clone for SemanticOpDesc
Source§impl Debug for SemanticOpDesc
impl Debug for SemanticOpDesc
Source§impl PartialEq for SemanticOpDesc
impl PartialEq for SemanticOpDesc
impl StructuralPartialEq for SemanticOpDesc
Auto Trait Implementations§
impl Forget for SemanticOpDesc
impl Freeze for SemanticOpDesc
impl Move for SemanticOpDesc
impl RefUnwindSafe for SemanticOpDesc
impl Send for SemanticOpDesc
impl Sync for SemanticOpDesc
impl Unpin for SemanticOpDesc
impl UnsafeUnpin for SemanticOpDesc
impl UnwindSafe for SemanticOpDesc
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