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

Craig Disselkoen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 12:45:08 PDT 2020


cdisselkoen 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++) {
----------------
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


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