[PATCH] D117921: Attributes: add a new allocalign attribute

Augie Fackler via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 11 17:08:57 PST 2022


durin42 marked 2 inline comments as done.
durin42 added inline comments.


================
Comment at: llvm/docs/LangRef.rst:1393
+    alignments are permitted for the allocalign parameter, so long as the returned pointer
+    is null.
+
----------------
nikic wrote:
> Should we specify that the attribute may only be applied to integer parameters, and add a corresponding rule to `typeIncompatible()`?
Sure, done.


================
Comment at: llvm/lib/Transforms/Utils/CodeExtractor.cpp:906
       // here so we get a warning if new attributes are added.
+      case Attribute::AllocAlign:
       case Attribute::AllocSize:
----------------
nikic wrote:
> This should be in the bottom category (non-function attrs).
Fixed, thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117921



More information about the llvm-commits mailing list