[llvm] [llubi] Implement intrinsics for integer arithmetic/bit manipulation (PR #193702)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 04:12:22 PDT 2026


================
@@ -381,6 +506,183 @@ class InstExecutor : public InstVisitor<InstExecutor, void>,
       }
       return AnyValue();
     }
+    case Intrinsic::ssa_copy:
+    case Intrinsic::expect:
+    case Intrinsic::expect_with_probability:
+      return Args[0];
+    case Intrinsic::donothing:
+      return AnyValue();
+    case Intrinsic::vscale: {
+      const unsigned BitWidth = RetTy->getScalarSizeInBits();
+      const APInt VScale(64, Ctx.getVScale());
+      if (!VScale.isIntN(BitWidth))
+        return AnyValue::poison();
----------------
nikic wrote:

Missing test for this case?

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


More information about the llvm-commits mailing list