pub struct LlvmTextRenderer;Expand description
Text-based LLVM IR renderer.
Generates LLVM IR as strings, suitable for compilation via external clang. Produces a single function with direct typed parameters.
Implementations§
Trait Implementations§
Source§impl Default for LlvmTextRenderer
impl Default for LlvmTextRenderer
Source§impl Renderer for LlvmTextRenderer
impl Renderer for LlvmTextRenderer
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 LlvmTextRenderer
impl RefUnwindSafe for LlvmTextRenderer
impl Send for LlvmTextRenderer
impl Sync for LlvmTextRenderer
impl Unpin for LlvmTextRenderer
impl UnsafeUnpin for LlvmTextRenderer
impl UnwindSafe for LlvmTextRenderer
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