Skip to main content

Module typetree

Module typetree 

Source

Constantsยง

MAX_TYPETREE_DEPTH ๐Ÿ”’
Maximum recursion depth for TypeTree generation to prevent stack overflow from pathological deeply nested types. Combined with cycle detection.

Functionsยง

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.