Return true if this shuffle is equivalent to a vector select.
Synopsis
Declared in <llvm/IR/Instructions.h>
bool
isSelect() const;
Description
Return true if this shuffle chooses elements from its source vectors without lane crossings and all operands have the same number of elements. In other words, this shuffle is equivalent to a vector select with a constant condition operand. Example: shufflevector <4 x n> A, <4 x n> B, <undef,1,6,3> This returns false if the mask does not choose from both input vectors. In that case, the shuffle is better classified as an identity shuffle. TODO: Optionally allow length‐changing shuffles.
Return Value
True if this shuffle is equivalent to a vector select.
Created with MrDocs