VectorType
public struct VectorType: IRType
A VectorType is a simple derived type that represents a vector of
elements. VectorTypes are used when multiple primitive data are operated
in parallel using a single instruction (SIMD). A vector type requires a size
(number of elements) and an underlying primitive data type.
-
Returns the type of elements in the vector.
Declaration
Swift
public let elementType: IRType -
Returns the number of elements in the vector.
Declaration
Swift
public let count: Int -
Creates a vector type of the given element type and size.
Declaration
Swift
public init(elementType: IRType, count: Int)Parameters
elementTypeThe type of elements of this vector.
countThe number of elements in this vector.
-
Retrieves the underlying LLVM type object.
Declaration
Swift
public func asLLVM() -> LLVMTypeRef
VectorType Struct Reference