[clang] [CIR][LLVMLowering] Upstream binary operators for VectorType (PR #140099)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Thu May 15 12:09:43 PDT 2025
================
@@ -57,7 +57,11 @@ namespace {
// TODO(cir): Return the vector element type once we have support for vectors
// instead of the identity type.
mlir::Type elementTypeIfVector(mlir::Type type) {
- assert(!cir::MissingFeatures::vectorType());
+ if (auto vecType = mlir::dyn_cast<cir::VectorType>(type))
+ return vecType.getElementType();
+
+ if (auto vecType = mlir::dyn_cast<mlir::VectorType>(type))
----------------
AmrDeveloper wrote:
I think yes, it will be better to put it in one pr and rebase both other PRs on it, I will do it.
Thanks
https://github.com/llvm/llvm-project/pull/140099
More information about the cfe-commits
mailing list