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 b954bed commit 975a23cCopy full SHA for 975a23c
enzyme/Enzyme/AdjointGenerator.h
@@ -193,7 +193,9 @@ class AdjointGenerator
193
#if LLVM_VERSION_MAJOR >= 14
194
#if LLVM_VERSION_MAJOR >= 16
195
AL = AL.addAttributeAtIndex(DT->getContext(), AttributeList::FunctionIndex,
196
- Attribute::AttrKind::Memory);
+ Attribute::getWithMemoryEffects(
197
+ DT->getContext(),
198
+ llvm::MemoryEffects::argMemOnly()));
199
#else
200
201
Attribute::AttrKind::ArgMemOnly);
0 commit comments