Skip to main content Module typetree Copy item path Source use rustc_ast::expand::typetree::FncTree ; ๐ use rustc_ast::expand::typetree::Kind ; ๐ use rustc_ast::expand::typetree::Type ; ๐ use rustc_ast::expand::typetree::TypeTree ; ๐ use rustc_span::bug ; ๐ use tracing::trace ; ๐ use crate::ty::context::TyCtxt ; ๐ use crate::ty ; ๐ use crate::ty::Ty ; ๐ MAX_TYPETREE_DEPTH ๐ Maximum recursion depth for TypeTree generation to prevent stack overflow
from pathological deeply nested types. Combined with cycle detection. fnc_typetrees Generate TypeTree information for autodiff.
This function creates TypeTree metadata that describes the memory layout
of function parameters and return types for Enzyme autodiff. handle_indirection ๐ typetree_from_ty Generate a TypeTree for a specific type.
Mainly a convenience wrapper around the actual implementation. typetree_from_ty_impl_inner ๐ Internal implementation with context about whether this is for a reference target.