Given a vector and an element number, see if the scalar value is already around as a register, for example if it were inserted then extracted from the vector.

Synopsis

Declared in <llvm/Analysis/VectorUtils.h>

Value*
findScalarElement(
    Value* V,
    unsigned int EltNo);

Return Value

The scalar element if already available as a register, or nullptr.

Parameters

Name

Description

V

Vector value to search for a scalar element of.

EltNo

Element index to look up.

Created with MrDocs