Given scalar/vector integer type, returns a type with elements half as wide as in the original type. For vectors, preserves element count.

Synopsis

Declared in <llvm/IR/Type.h>

Type*
getTruncatedType() const;

Return Value

A type with elements half as wide as in this type.

Created with MrDocs