[llvm] [GlobalISel] Add G_STEP_VECTOR instruction (PR #115598)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 10 22:19:22 PST 2024
================
@@ -906,6 +906,16 @@ class GVScale : public GenericMachineInstr {
};
};
+/// Represents a step vector.
+class GStepVector : public GenericMachineInstr {
+public:
+ APInt getStep() const { return getOperand(1).getCImm()->getValue(); }
+
----------------
tschuett wrote:
I replaced the APInt by an uint64_t. The step is unsigned.
https://github.com/llvm/llvm-project/pull/115598
More information about the llvm-commits
mailing list