Return the splat index of a G_SHUFFLE_VECTOR when it is a splat.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

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

Return Value

The splat index when MI is a splat, or std::nullopt otherwise.

Parameters

Name

Description

MI

Shuffle instruction to inspect.

Created with MrDocs