Skip to content

Commit cb18b16

Browse files
committed
Add debug info to fprt runtime calls
Also log op name Fix tests Fix file location Fix older llvm vers Handle casts and emit warnings only emit warning/error if trunc from type is used Clean up fprt headers Add unary op [Truncate] Clean up FPRT headers Fix tracing runtime [Truncate] Fix bug with fcmp handling We did not pass the truncated values to the runtime [Truncate] Corrently handle constant returns Unify logging fix Refactor printing in Trace.cpp Better diagnostics PHINode fixes Only need them in mem mode Trace inputs Fix tracing Handle stores of const floats fprt improvements ADAPT-style analysis Limit fps to handle for propagation Assign dbg info to inlineable callsites Set correct fprt_original linkage Fix debug metadata issues Always provide valid location string to FPRT Explicitly remap originalToNew when we dont RAUW Add missing checks for fp type Fix wrong fma function name Add __*_finite versions of derivatives fix Some fixes Add used attribute so that mpfr.h can be compiled as a library
1 parent 662740f commit cb18b16

File tree

19 files changed

+1215
-229
lines changed

19 files changed

+1215
-229
lines changed

enzyme/Enzyme/Enzyme.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
//
2525
//===----------------------------------------------------------------------===//
2626
#include <llvm/Config/llvm-config.h>
27+
#include <llvm/IR/GlobalValue.h>
2728
#include <memory>
2829

2930
#if LLVM_VERSION_MAJOR >= 16
@@ -2217,7 +2218,7 @@ class EnzymeBase {
22172218
#endif
22182219
RemapFunction(F, Mapping,
22192220
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
2220-
TruncatedFunc->deleteBody();
2221+
TruncatedFunc->eraseFromParent();
22212222
}
22222223
return true;
22232224
}

0 commit comments

Comments
 (0)