pub struct CRenderer;Expand description
C source code renderer for CPU execution via clang.
Implementations§
Trait Implementations§
Source§impl Renderer for CRenderer
impl Renderer for CRenderer
Source§fn render(&self, uop: &Arc<UOp>, name: Option<&str>) -> Result<RenderedKernel>
fn render(&self, uop: &Arc<UOp>, name: Option<&str>) -> Result<RenderedKernel>
Render a UOp graph into executable code. Read more
Source§fn backend_name(&self) -> &str
fn backend_name(&self) -> &str
Get the backend name (e.g., “llvm”, “cuda”, “metal”).
Source§fn decompositor(&self) -> Option<TypedPatternMatcher<()>>
fn decompositor(&self) -> Option<TypedPatternMatcher<()>>
Returns decomposition patterns for operations this backend doesn’t support. Read more
Auto Trait Implementations§
impl Freeze for CRenderer
impl RefUnwindSafe for CRenderer
impl Send for CRenderer
impl Sync for CRenderer
impl Unpin for CRenderer
impl UnsafeUnpin for CRenderer
impl UnwindSafe for CRenderer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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