Attempt to constant fold a shufflevector instruction with the specified operands and mask.
Declared in <llvm/IR/ConstantFold.h>
Constant*
ConstantFoldShuffleVectorInstruction(
Constant* V1,
Constant* V2,
ArrayRef<int> Mask);
See class ShuffleVectorInst for a description of the mask representation. The constant result is returned if successful; if not, null is returned.
The folded constant, or null if the shuffle cannot be folded.
| Name | Description |
|---|---|
| V1 | The first vector operand. |
| V2 | The second vector operand. |
| Mask | The shuffle mask. |