We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e344b3d commit cbe56beCopy full SHA for cbe56be
enzyme/Enzyme/CApi.cpp
@@ -490,6 +490,11 @@ void EnzymeMoveBefore(LLVMValueRef inst1, LLVMValueRef inst2) {
490
I1->moveBefore(I2);
491
}
492
493
+void EnzymeSetMustCache(LLVMValueRef inst1) {
494
+ Instruction *I1 = cast<Instruction>(unwrap(inst1));
495
+ I1->setMetadata("enzyme_mustcache", MDNode::get(I1->getContext(), {}));
496
+}
497
+
498
#if LLVM_VERSION_MAJOR >= 9
499
void EnzymeAddAttributorLegacyPass(LLVMPassManagerRef PM) {
500
unwrap(PM)->add(createAttributorLegacyPass());
0 commit comments