If all non‐negative Mask elements are the same value, return that value. If all elements are negative (undefined) or Mask contains different non‐negative values, return ‐1.

Synopses

Declared in <llvm/Analysis/VectorUtils.h>

If all non‐negative Mask elements are the same value, return that value. If all elements are negative (undefined) or Mask contains different non‐negative values, return ‐1.

std::optional<int>
getSplatIndex(MachineInstr& MI);

Return Value

The splat index of a G_SHUFFLE_VECTOR MI when MI is a splat. If MI is not a splat, returns std::nullopt.

Created with MrDocs