[PATCH] D59922: [Attributor] Deduce "no-capture" argument attribute

Johannes Doerfert via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 3 13:34:42 PDT 2019


jdoerfert marked 6 inline comments as done.
jdoerfert added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:2618
+    else
+      Attrs.emplace_back(Attribute::get(Ctx, "no-capture-maybe-returned"));
+  }
----------------
uenoku wrote:
> Maybe we need an exact definition for `no-capture-maybe-returned` in LangRef.
I add a flag to disable manifestation in non-testing modes. If we add users we can add it as a enum attribute, for now it is internal.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59922/new/

https://reviews.llvm.org/D59922





More information about the cfe-commits mailing list