efriedma added a comment.

Would it make sense to generalize getSVEType() to getSVETypeList()?  It seems 
like the current approach won't generalize well once you're dealing with more 
than one overloaded type (for example, llvm.aarch64.sve.scvtf.nxv8f16.nxv8i16).



================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:7665
+    if (auto PredTy = dyn_cast<llvm::VectorType>(Call->getType()))
+      if (PredTy->getScalarType()->isIntegerTy(1))
+        Call = EmitSVEPredicateCast(Call, cast<llvm::VectorType>(Ty));
----------------
getElementType().


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77596



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to