[PATCH] D147916: [10/11][POC][Clang][RISCV] Define vget for tuple type

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 18 16:55:55 PDT 2023


craig.topper added inline comments.


================
Comment at: clang/include/clang/Basic/riscv_vector.td:2723
+          unsigned MaxIndex = cast<StructType>(VTupleOperand->getType())->getNumElements();
+          Index = std::min(Index, MaxIndex);
+
----------------
Does SemaChecking.cpp already guarantee Index is less than Maxindex?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D147916



More information about the cfe-commits mailing list