[llvm] [GlobalIsel] Canonicalize G_ICMP (PR #108755)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 15 23:28:39 PDT 2024


================
@@ -950,6 +950,16 @@ class GExtOrTruncOp : public GCastOp {
   };
 };
 
+/// Represents a splat vector.
+class GSplatVector : public GenericMachineInstr {
+public:
+  Register getValueReg() const { return getOperand(1).getReg(); }
----------------
tschuett wrote:

```
// Generic splatvector.
def G_SPLAT_VECTOR: GenericInstruction {
  let OutOperandList = (outs type0:$dst);
  let InOperandList = (ins type1:$val);
  let hasSideEffects = false;
}
```
In the .td file it is called `val`.  Scalar is confusing for me on a scalable vector.

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


More information about the llvm-commits mailing list