Basic implementation of autodiff intrinsic

This commit is contained in:
Marcelo Domínguez
2025-08-14 15:22:45 +00:00
parent 30017c36d6
commit 5c631041aa
7 changed files with 282 additions and 243 deletions

View File

@@ -660,7 +660,7 @@ impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> {
}
}
impl<'ll> SimpleCx<'ll> {
pub(crate) fn get_return_type(&self, ty: &'ll Type) -> &'ll Type {
pub(crate) fn _get_return_type(&self, ty: &'ll Type) -> &'ll Type {
assert_eq!(self.type_kind(ty), TypeKind::Function);
unsafe { llvm::LLVMGetReturnType(ty) }
}