[clang] [CIR] Lower vector integer/float to bool casts (PR #203397)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 15 12:00:04 PDT 2026


================
@@ -553,6 +558,10 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
       } else if (mlir::isa<cir::FPTypeInterface>(dstTy)) {
         // TODO: split this to createFPExt/createFPTrunc
         return builder.createFloatingCast(src, fullDstTy);
+      } else if (mlir::isa<cir::BoolType>(dstTy)) {
+        // Vector-to-vector conversion with bool element type (the scalar
----------------
adams381 wrote:

Dropped.

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


More information about the cfe-commits mailing list