Skip to content

Commit 87325c3

Browse files
committed
Stash
1 parent 7509a6e commit 87325c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

enzyme/Enzyme/CApi.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ void EnzymeSetCLInteger(void *ptr, int64_t val) {
154154
cl->setValue((int)val);
155155
}
156156

157+
int64_t EnzymeGetCLInteger(void *ptr) {
158+
auto cl = (llvm::cl::opt<int> *)ptr;
159+
return (int64_t)cl->getValue();
160+
}
161+
157162
EnzymeLogicRef CreateEnzymeLogic() {
158163
return (EnzymeLogicRef)(new EnzymeLogic());
159164
}

enzyme/Enzyme/Utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ allUnsyncdPredecessorsOf(llvm::Instruction *inst,
699699
}
700700

701701
#include "llvm/Analysis/LoopInfo.h"
702+
702703
static inline void
703704
/// Call the function f for all instructions that happen between inst1 and inst2
704705
/// If the function returns true, the iteration will early exit

0 commit comments

Comments
 (0)