Skip to main content

Tier1SimdExecutor

Struct Tier1SimdExecutor 

Source
pub struct Tier1SimdExecutor { /* private fields */ }
Expand description

Per-fiber Tier-1 executor. The scalar and native register kernels share no mutable state with another fiber.

Implementations§

Source§

impl Tier1SimdExecutor

Source

pub fn descriptor(&self) -> &Tier1SimdDescriptor

The plan’s description.

Source

pub const fn stats(&self) -> Tier1SimdStats

The counters so far.

Source

pub fn scalar_program(&self) -> &Arc<PolydatProgram> ⓘ

The scalar program the plan falls back to.

Source

pub const fn has_active_lease(&self) -> bool

Whether a lease is open.

Source

pub fn remaining(&self) -> u64

Values left in the open lease, or zero.

Source

pub fn set_broadcast( &mut self, name: &str, value: Value, ) -> Result<(), Tier1SimdError>

Freeze one scope-stable input value for subsequent packet evaluation. Rebinding during an owned lease is rejected rather than invalidating already-reserved logical inputs.

Source

pub fn begin_lease( &mut self, lease: OrdinalBatchLease, activation_epoch: u64, ) -> Result<(), Tier1LeaseStartError>

Accept an owned source reservation. A rejection returns the lease in Tier1LeaseStartError so the caller can scalar-process it.

Source

pub fn force_scalar_recovery(&mut self)

Discard an uncommitted register packet and process the remainder of the active lease through the retained scalar graph. The consumer frontier does not move and the shared source cursor is not touched.

Source

pub fn drain_into(&mut self, output: &mut [Value]) -> usize

Drain committed scalar values in ordinal order. Calls may use arbitrary burst sizes; a partly consumed register packet remains in BatchState.

Auto Trait Implementations§

§

impl !Freeze for Tier1SimdExecutor

§

impl !RefUnwindSafe for Tier1SimdExecutor

§

impl !UnwindSafe for Tier1SimdExecutor

§

impl Forget for Tier1SimdExecutor

§

impl Move for Tier1SimdExecutor

§

impl Send for Tier1SimdExecutor
where RawVecInner: Send, Arc<PolydatProgram>: Send, EngineCore: Send, RawTable<usize>: Send, Arc<str>: Send, Arc<[u8]>: Send, Arc<Value>: Send, BoxRaw<dyn ReflectedValue>: Send, Arc<dyn Any + Sync + Send>: Send, Arc<OrdinalSet>: Send, Arc<PredicateForms>: Send, Arc<RecordForms>: Send, SliceArc<f32>: Send, SliceArc<i32>: Send, SliceArc<f64>: Send, SliceArc<i64>: Send, SliceArc<f16>: Send, SliceArc<i16>: Send, SliceArc<i8>: Send, Arc<SharedCellInner>: Send, RawTable<(String, usize)>: Send, RawTable<(String, PortType)>: Send, BoxRaw<ScopeCells>: Send, Arc<Atomic<u64>>: Send, Atomic<u8>: Send, Atomic<bool>: Send, Arc<CompileLedger>: Send, Arc<Slot>: Send, Arc<[Traversal]>: Send, Arc<FinalizedModule>: Send, Arc<Vec<Box<dyn PolydatNode>>>: Send, Arc<Attribution>: Send, RawTable<((usize, Engine), BodyEntry)>: Send, BoxRaw<dyn Any + Sync + Send>: Send, Arc<[Box<[usize]>]>: Send, Arc<[usize]>: Send, Arc<[u32]>: Send,

§

impl Sync for Tier1SimdExecutor
where RawVecInner: Sync, Arc<PolydatProgram>: Sync, EngineCore: Sync, RawTable<usize>: Sync, Arc<str>: Sync, Arc<[u8]>: Sync, Arc<Value>: Sync, BoxRaw<dyn ReflectedValue>: Sync, Arc<dyn Any + Sync + Send>: Sync, Arc<OrdinalSet>: Sync, Arc<PredicateForms>: Sync, Arc<RecordForms>: Sync, SliceArc<f32>: Sync, SliceArc<i32>: Sync, SliceArc<f64>: Sync, SliceArc<i64>: Sync, SliceArc<f16>: Sync, SliceArc<i16>: Sync, SliceArc<i8>: Sync, Arc<SharedCellInner>: Sync, RawTable<(String, usize)>: Sync, RawTable<(String, PortType)>: Sync, BoxRaw<ScopeCells>: Sync, Arc<Atomic<u64>>: Sync, Atomic<u8>: Sync, Atomic<bool>: Sync, Arc<CompileLedger>: Sync, Arc<Slot>: Sync, Arc<[Traversal]>: Sync, Arc<FinalizedModule>: Sync, Arc<Vec<Box<dyn PolydatNode>>>: Sync, Arc<Attribution>: Sync, BodyKernels: Sync, BoxRaw<dyn Any + Sync + Send>: Sync, Arc<[Box<[usize]>]>: Sync, Arc<[usize]>: Sync, Arc<[u32]>: Sync,

§

impl Unpin for Tier1SimdExecutor

§

impl UnsafeUnpin for Tier1SimdExecutor
where *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, *const ArcInner<PolydatProgram> is !null: UnsafeUnpin, PhantomData<ArcInner<PolydatProgram>>: UnsafeUnpin, PhantomData<Vec<Value>>: UnsafeUnpin, PhantomData<bool>: UnsafeUnpin, PhantomData<Value>: UnsafeUnpin, PhantomData<Option<Arc<SharedCellInner>>>: UnsafeUnpin, Align1<u8>: UnsafeUnpin, PhantomData<Vec<ScratchBuf>>: UnsafeUnpin, PhantomData<Arc<Atomic<u64>>>: UnsafeUnpin, PhantomData<(*const SharedCellInner, u64)>: UnsafeUnpin, PhantomData<Option<CellCone>>: UnsafeUnpin, PhantomData<Vec<usize>>: UnsafeUnpin, PhantomData<usize>: UnsafeUnpin, PhantomData<ScopeCoord>: UnsafeUnpin, PhantomData<KernelWriteThrough>: UnsafeUnpin, PhantomData<SharedCellEntry>: UnsafeUnpin, PhantomData<u64>: UnsafeUnpin, PhantomData<(String, usize)>: UnsafeUnpin, PhantomData<(String, PortType)>: UnsafeUnpin, PhantomData<ExternSlot>: UnsafeUnpin, PhantomData<Option<usize>>: UnsafeUnpin, PhantomData<SourceSchema>: UnsafeUnpin, *const ScopeCells is !null: UnsafeUnpin, PhantomData<ScopeCells>: UnsafeUnpin, *const ArcInner<Atomic<u64>> is !null: UnsafeUnpin, PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin, *const ArcInner<CompileLedger> is !null: UnsafeUnpin, PhantomData<ArcInner<CompileLedger>>: UnsafeUnpin, *const ArcInner<Slot> is !null: UnsafeUnpin, PhantomData<ArcInner<Slot>>: UnsafeUnpin, *const ArcInner<[Traversal]> is !null: UnsafeUnpin, PhantomData<ArcInner<[Traversal]>>: UnsafeUnpin, *const ArcInner<FinalizedModule> is !null: UnsafeUnpin, PhantomData<ArcInner<FinalizedModule>>: UnsafeUnpin, *const ArcInner<Vec<Box<dyn PolydatNode>>> is !null: UnsafeUnpin, PhantomData<ArcInner<Vec<Box<dyn PolydatNode>>>>: UnsafeUnpin, *const ArcInner<Attribution> is !null: UnsafeUnpin, PhantomData<ArcInner<Attribution>>: UnsafeUnpin, PhantomData<ScratchBuf>: UnsafeUnpin, PhantomData<(usize, usize)>: UnsafeUnpin, *const ArcInner<[Box<[usize]>]> is !null: UnsafeUnpin, PhantomData<ArcInner<[Box<[usize]>]>>: UnsafeUnpin, *const ArcInner<[usize]> is !null: UnsafeUnpin, PhantomData<ArcInner<[usize]>>: UnsafeUnpin, *const ArcInner<[u32]> is !null: UnsafeUnpin, PhantomData<ArcInner<[u32]>>: UnsafeUnpin, PhantomData<Option<Arc<[u32]>>>: UnsafeUnpin, PhantomData<Option<Arc<[usize]>>>: UnsafeUnpin, PhantomData<(usize, PortType)>: UnsafeUnpin, PhantomData<BoundaryValue>: UnsafeUnpin, *const ArcInner<str> is !null: UnsafeUnpin, PhantomData<ArcInner<str>>: UnsafeUnpin, *const ArcInner<[u8]> is !null: UnsafeUnpin, PhantomData<ArcInner<[u8]>>: UnsafeUnpin, *const ArcInner<Value> is !null: UnsafeUnpin, PhantomData<ArcInner<Value>>: UnsafeUnpin, *const dyn ReflectedValue is !null: UnsafeUnpin, PhantomData<dyn ReflectedValue>: UnsafeUnpin, *const ArcInner<dyn Any + Sync + Send> is !null: UnsafeUnpin, PhantomData<ArcInner<dyn Any + Sync + Send>>: UnsafeUnpin, *const ArcInner<OrdinalSet> is !null: UnsafeUnpin, PhantomData<ArcInner<OrdinalSet>>: UnsafeUnpin, *const ArcInner<PredicateForms> is !null: UnsafeUnpin, PhantomData<ArcInner<PredicateForms>>: UnsafeUnpin, *const ArcInner<RecordForms> is !null: UnsafeUnpin, PhantomData<ArcInner<RecordForms>>: UnsafeUnpin, *const f32: UnsafeUnpin, *const i32: UnsafeUnpin, *const f64: UnsafeUnpin, *const i64: UnsafeUnpin, *const f16: UnsafeUnpin, *const i16: UnsafeUnpin, *const i8: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more