[clang] [PATCH] [PATCH] [CIR][X86] Add support for cmp builtins (PR #174318)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 4 03:40:12 PST 2026


================
@@ -656,6 +656,14 @@ LogicalResult cir::CastOp::verify() {
              << "requires floating point !cir.complex type for result";
     return success();
   }
+  case cir::CastKind::vector_to_int: {
+    auto vectorTy = mlir::dyn_cast<cir::VectorType>(srcType);
+    if (!vectorTy)
----------------
Lancern wrote:

```suggestion
    if (!mlir::isa<cir::VectorType>(srcType))
```

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


More information about the cfe-commits mailing list