[clang] [CIR] Support building vectors from smaller vectors (PR #231404)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 02:03:12 PDT 2026


================
@@ -2970,6 +3013,12 @@ mlir::Value ScalarExprEmitter::VisitInitListExpr(InitListExpr *e) {
       elements.push_back(Visit(init));
     }
 
+    if (llvm::any_of(elements, [](mlir::Value v) {
+          return mlir::isa<cir::VectorType>(v.getType());
+        }))
----------------
aobolensk wrote:

Done

https://github.com/llvm/llvm-project/pull/231404


More information about the cfe-commits mailing list