Skip to content

Commit

Permalink
Add debug info to fprt runtime calls
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ivanradanov committed Sep 26, 2024
1 parent 662740f commit cb18b16
Show file tree
Hide file tree
Showing 19 changed files with 1,215 additions and 229 deletions.
3 changes: 2 additions & 1 deletion enzyme/Enzyme/Enzyme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
//
//===----------------------------------------------------------------------===//
#include <llvm/Config/llvm-config.h>
#include <llvm/IR/GlobalValue.h>
#include <memory>

#if LLVM_VERSION_MAJOR >= 16
Expand Down Expand Up @@ -2217,7 +2218,7 @@ class EnzymeBase {
#endif
RemapFunction(F, Mapping,
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
TruncatedFunc->deleteBody();
TruncatedFunc->eraseFromParent();
}
return true;
}
Expand Down
Loading

0 comments on commit cb18b16

Please sign in to comment.