about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
diff options
context:
space:
mode:
authorThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-04-28 04:02:54 +0000
committerThe rustc-dev-guide Cronjob Bot <github-actions@github.com>2025-04-28 04:02:54 +0000
commitaa15830ee2defbac8e784db5510bb914e6e4c820 (patch)
tree87e76fd223f1937ee26537e1028d44e7f6b65544 /compiler/rustc_codegen_llvm/src/builder/autodiff.rs
parentde491f9b7827961c9a786a562cd996db68bd3b5d (diff)
parentdeb947971c8748f5c6203548ce4af9022f21eaf0 (diff)
downloadrust-aa15830ee2defbac8e784db5510bb914e6e4c820.tar.gz
rust-aa15830ee2defbac8e784db5510bb914e6e4c820.zip
Merge from rustc
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 e7c071d05aa..0147bd5a665 100644
--- a/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
+++ b/compiler/rustc_codegen_llvm/src/builder/autodiff.rs
@@ -473,7 +473,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);