[PATCH] D88190: C API: functions to get mask of a ShuffleVector

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 14:10:25 PDT 2020


efriedma added inline comments.


================
Comment at: llvm/tools/llvm-c-test/echo.cpp:812
+              "ShuffleVector: Expected no more than 8 mask elements");
+        LLVMValueRef MaskElts[8];
+        for (unsigned i = 0; i < NumMaskElts; i++) {
----------------
cdisselkoen wrote:
> cdisselkoen wrote:
> > efriedma wrote:
> > > Any particular reason you aren't using a SmallVector here?
> > I guess it was just because conceptually in my mind this is C code and not C++ code (it consumes the C API).  Happy to use SmallVector if you prefer
> Updated to use SmallVector
Did you mean to use push_back?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88190



More information about the llvm-commits mailing list