[#llvm-ConstantFoldShuffleVectorInstruction] = xref:llvm.adoc[llvm]::ConstantFoldShuffleVectorInstruction :relfileprefix: ../ :mrdocs: Attempt to constant fold a shufflevector instruction with the specified operands and mask. == Synopsis Declared in `<llvm/IR/ConstantFold.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Constant.adoc[Constant]* ConstantFoldShuffleVectorInstruction( xref:llvm/Constant.adoc[Constant]* V1, xref:llvm/Constant.adoc[Constant]* V2, xref:llvm/ArrayRef-08.adoc[ArrayRef<int>] Mask); ---- == Description See class ShuffleVectorInst for a description of the mask representation. The constant result is returned if successful; if not, null is returned. == Return Value The folded constant, or null if the shuffle cannot be folded. == Parameters [cols="1,4"] |=== | Name| Description | *V1* | The first vector operand. | *V2* | The second vector operand. | *Mask* | The shuffle mask. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#