Given vector type, change the element type, whilst keeping the old number of elements. For non‐vectors simply returns EltTy.

Synopsis

Declared in <llvm/IR/Type.h>

Type*
getWithNewType(Type* EltTy) const;

Return Value

This type with its scalar or element type replaced by EltTy.

Parameters

Name

Description

EltTy

Replacement scalar or vector element type.

Created with MrDocs