Skip to content

Commit 0ecb1f5

Browse files
committed
Basic implementation of autodiff intrinsic
1 parent f85a5f6 commit 0ecb1f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/intrinsics/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3157,6 +3157,10 @@ pub const unsafe fn copysignf64(x: f64, y: f64) -> f64;
31573157
#[rustc_intrinsic]
31583158
pub const unsafe fn copysignf128(x: f128, y: f128) -> f128;
31593159

3160+
#[rustc_nounwind]
3161+
#[rustc_intrinsic]
3162+
pub const fn autodiff<F, G, T: crate::marker::Tuple, R>(f: F, df: G, args: T) -> R;
3163+
31603164
/// Inform Miri that a given pointer definitely has a certain alignment.
31613165
#[cfg(miri)]
31623166
#[rustc_allow_const_fn_unstable(const_eval_select)]

0 commit comments

Comments
 (0)