[#llvm-isBuildVectorConstantSplat-00f] = xref:llvm.adoc[llvm]::isBuildVectorConstantSplat :relfileprefix: ../ :mrdocs: Return true if the specified register is defined by G_BUILD_VECTOR or G_BUILD_VECTOR_TRUNC where all of the elements are `SplatValue` or undef. == Synopsis Declared in `<llvm/CodeGen/GlobalISel/Utils.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool isBuildVectorConstantSplat( xref:llvm/Register.adoc[Register] const Reg, xref:llvm/MachineRegisterInfo.adoc[MachineRegisterInfo] const& MRI, int64_t SplatValue, bool AllowUndef); ---- == Return Value True if all elements are `SplatValue` or undef. == Parameters [cols="1,4"] |=== | Name| Description | *Reg* | Virtual register defined by a build vector. | *MRI* | Register information for the function. | *SplatValue* | Expected splat integer value. | *AllowUndef* | Whether undef elements are permitted. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#