Functions§
- compute_
enzyme_ 🔒fn_ ty - differentiate 🔒
- generate_
enzyme_ 🔒call - When differentiating
fn_to_diff
, take aouter_fn
and generate another function with expected naming and calling conventions which will be discovered by the enzyme LLVM pass and its body populated with the differentiatedfn_to_diff
.outer_fn
is then modified to have a call to the generated function and handle the differences between the Rust calling convention and Enzyme. - get_
params 🔒 - has_
sret 🔒 - match_
args_ 🔒from_ caller_ to_ enzyme