getSplatIndex overloads

Synopses

Declared in <llvm/Analysis/VectorUtils.h>

Return the common non‐negative splat index in Mask, or ‐1.

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 MI is 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