about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
diff options
context:
space:
mode:
authorManuel Drehwald <git@manuel.drehwald.info>2025-04-12 01:09:14 -0400
committerManuel Drehwald <git@manuel.drehwald.info>2025-04-12 01:36:47 -0400
commit5ea9125f378a14fac8c60fe2f0e0993e7af2284b (patch)
treeb72fc4fdc5d1c22e2beed07cc48063f0ffee95e5 /compiler/rustc_codegen_llvm/src/builder/autodiff.rs
parent31578dc587ecb0a26bc487ce3999032065b8dfb5 (diff)
downloadrust-5ea9125f378a14fac8c60fe2f0e0993e7af2284b.tar.gz
rust-5ea9125f378a14fac8c60fe2f0e0993e7af2284b.zip
update documentation
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder/autodiff.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder/autodiff.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
index 5e7ef27143b..f5023e0ca5a 100644
--- a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
+++ b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
@@ -445,7 +445,7 @@ pub(crate) fn differentiate<'ll>(
         return Err(diag_handler.handle().emit_almost_fatal(AutoDiffWithoutEnable));
     }
 
-    // Before dumping the module, we want all the TypeTrees to become part of the module.
+    // Here we replace the placeholder code with the actual autodiff code, which calls Enzyme.
     for item in diff_items.iter() {
         let name = item.source.clone();
         let fn_def: Option<&llvm::Value> = cx.get_function(&name);