getSplatIndex overloads
Synopses
Declared in <llvm/Analysis/VectorUtils.h>
Return the common non‐negative splat index in Mask, or ‐1.
int
getSplatIndex(ArrayRef<int> Mask);
Return the splat index of a G_SHUFFLE_VECTOR when it is a splat.
std::optional<int>
getSplatIndex(MachineInstr& MI);
Return Value
-
The common non‐negative splat index, or ‐1.
-
The splat index when
MIis a splat, or std::nullopt otherwise.
Parameters
Name |
Description |
Mask |
Shuffle mask to inspect for a common splat index. |
MI |
Shuffle instruction to inspect. |
Created with MrDocs