[llvm] [IR][REVEC] Define llvm.vector.broadcast intrinsic (PR #208212)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 10:56:14 PDT 2026


================
@@ -6861,6 +6844,25 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
           &Call);
     break;
   }
+  case Intrinsic::vector_repeat: {
+    auto *ResultTy = cast<VectorType>(Call.getType());
+    auto *ArgTy = cast<VectorType>(Call.getArgOperand(0)->getType());
+
+    Check(ResultTy->getElementType() == ArgTy->getElementType(),
+          "vector_repeat argument and result must have the same element "
+          "type.",
+          &Call);
+    Check(ArgTy->getElementCount().isFixed(),
----------------
gbossu wrote:

Good catch, I use dyn_casts now and simplified the Checks.

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


More information about the llvm-commits mailing list