[#llvm-toVectorTy-0e2] = xref:llvm.adoc[llvm]::toVectorTy :relfileprefix: ../ :mrdocs: `toVectorTy` overloads == Synopses Declared in `<llvm/IR/VectorTypeUtils.h>` Convert a scalar type to a vector type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Type.adoc[Type]* xref:llvm/toVectorTy-0d.adoc[toVectorTy]( xref:llvm/Type.adoc[Type]* Scalar, xref:llvm/ElementCount.adoc[ElementCount] EC); ---- [.small]#xref:llvm/toVectorTy-0d.adoc[_» more..._]# Convert a scalar type to a fixed‐length vector type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:llvm/Type.adoc[Type]* xref:llvm/toVectorTy-0e1.adoc[toVectorTy]( xref:llvm/Type.adoc[Type]* Scalar, unsigned int VF); ---- [.small]#xref:llvm/toVectorTy-0e1.adoc[_» more..._]# == Return Value * The vector type with element type `Scalar` and element count `EC,` or `Scalar` when it is void/metadata or `EC` is scalar. * The fixed‐length vector type with element type `Scalar` and length `VF.` == Parameters [cols="1,4"] |=== | Name| Description | *Scalar* | Scalar (or void/metadata) type to widen. | *EC* | Element count of the resulting vector. | *VF* | Fixed vector length (number of elements). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#