[PATCH] D139701: [Clang] Emit "min-legal-vector-width" attribute for X86 only

Phoebe Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 05:36:55 PST 2022


pengfei added inline comments.


================
Comment at: llvm/docs/LangRef.rst:2235-2241
-``"min-legal-vector-width"="<size>"``
-    This attribute indicates the minimum legal vector width required by the
-    calling convension. It is the maximum width of vector arguments and
-    returnings in the function and functions called by this function. Because
-    all the vectors are supposed to be legal type for compatibility.
-    Backends are free to ignore the attribute if they don't need to support
-    different maximum legal vector types or such information can be inferred by
----------------
arsenm wrote:
> This still should be documented somewhere. I don't know if we document any target attributes specifically in the langref
Added in D139784, PTAL.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139701



More information about the llvm-commits mailing list