Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Oct 21, 2023
1 parent 382043e commit b063dce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_codegen_llvm/src/llvm/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,9 +1063,9 @@ pub(crate) unsafe fn enzyme_rust_forward_diff(

EnzymeCreateForwardDiff(
logic_ref, // Logic
fnc,
ptr::null(),
ptr::null(),
fnc,
ret_activity, // LLVM function, return type
input_activity.as_ptr(),
input_activity.len(), // constant arguments
Expand Down Expand Up @@ -1127,9 +1127,9 @@ pub(crate) unsafe fn enzyme_rust_reverse_diff(

EnzymeCreatePrimalAndGradient(
logic_ref, // Logic
fnc,
ptr::null(),
ptr::null(),
fnc,
ret_activity, // LLVM function, return type
input_activity.as_ptr(),
input_activity.len(), // constant arguments
Expand Down Expand Up @@ -2824,9 +2824,9 @@ pub enum CDerivativeMode {
extern "C" {
fn EnzymeCreatePrimalAndGradient<'a>(
arg1: EnzymeLogicRef,
todiff: &'a Value,
builderCtx: *const u8, // &'a Builder<'_>,
callerCtx: *const u8,// &'a Value,
todiff: &'a Value,
retType: CDIFFE_TYPE,
constant_args: *const CDIFFE_TYPE,
constant_args_size: size_t,
Expand All @@ -2849,9 +2849,9 @@ extern "C" {
extern "C" {
fn EnzymeCreateForwardDiff<'a>(
arg1: EnzymeLogicRef,
todiff: &'a Value,
builderCtx: *const u8,// &'a Builder<'_>,
callerCtx: *const u8,// &'a Value,
todiff: &'a Value,
retType: CDIFFE_TYPE,
constant_args: *const CDIFFE_TYPE,
constant_args_size: size_t,
Expand Down

0 comments on commit b063dce

Please sign in to comment.