pub enum KernelDispatchPolicy {
PreferNative,
ForceCommon,
ForceNative,
}Expand description
When to use native backend kernels vs the shared IR common body.
Variants§
PreferNative
Native thunk when OpKind is in the backend supported_ops; else common IR lower.
ForceCommon
Always lower registered logical kernels to common IR (parity / minimal backends).
ForceNative
Never common-lower; legalization must succeed with native ops only.
Implementations§
Source§impl KernelDispatchPolicy
impl KernelDispatchPolicy
pub fn from_env() -> KernelDispatchPolicy
Trait Implementations§
Source§impl Clone for KernelDispatchPolicy
impl Clone for KernelDispatchPolicy
Source§fn clone(&self) -> KernelDispatchPolicy
fn clone(&self) -> KernelDispatchPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelDispatchPolicy
impl Debug for KernelDispatchPolicy
Source§impl Default for KernelDispatchPolicy
impl Default for KernelDispatchPolicy
Source§fn default() -> KernelDispatchPolicy
fn default() -> KernelDispatchPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for KernelDispatchPolicy
impl PartialEq for KernelDispatchPolicy
Source§fn eq(&self, other: &KernelDispatchPolicy) -> bool
fn eq(&self, other: &KernelDispatchPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for KernelDispatchPolicy
impl Eq for KernelDispatchPolicy
impl StructuralPartialEq for KernelDispatchPolicy
Auto Trait Implementations§
impl Freeze for KernelDispatchPolicy
impl RefUnwindSafe for KernelDispatchPolicy
impl Send for KernelDispatchPolicy
impl Sync for KernelDispatchPolicy
impl Unpin for KernelDispatchPolicy
impl UnsafeUnpin for KernelDispatchPolicy
impl UnwindSafe for KernelDispatchPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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