[clang] [CIR] Upstream shift operators for VectorType (PR #139465)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon May 12 10:19:54 PDT 2025


================
@@ -1401,18 +1401,19 @@ def ShiftOp : CIR_Op<"shift", [Pure]> {
     The `cir.shift` operation performs a bitwise shift, either to the left or to
     the right, based on the first operand. The second operand specifies the
     value to be shifted, and the third operand determines the number of
-    positions by which the shift is applied. Both the second and third operands
-    are required to be integers.
+    positions by which the shift is applied, they must be either all vector of
----------------
andykaylor wrote:

```suggestion
    positions by which the shift is applied. They must be either all vector of
```

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


More information about the cfe-commits mailing list