Skip to content

Commit

Permalink
[CAPI] Add a dump typeinfo function (rust-lang#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jan 26, 2022
1 parent 265646f commit 65cb888
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions enzyme/Enzyme/CApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ CTypeTreeRef EnzymeGradientUtilsAllocAndGetTypeTree(GradientUtils *gutils,
return (CTypeTreeRef)pTT;
}

void EnzymeGradientUtilsDumpTypeResults(GradientUtils *gutils) {
assert(gutils->my_TR);
gutils->my_TR->dump();
}

void EnzymeGradientUtilsSubTransferHelper(
GradientUtils *gutils, CDerivativeMode mode, LLVMTypeRef secretty,
uint64_t intrinsic, uint64_t dstAlign, uint64_t srcAlign, uint64_t offset,
Expand Down

0 comments on commit 65cb888

Please sign in to comment.