llvm::APInt::zext

Zero-extend to a new width.

Synopsis

Declared in <llvm/ADT/APInt.h>

APInt
zext(unsigned int width) const;

Description

High-order bits are filled with zeros. It is an error to specify a width less than the current width.

Return Value

This value zero-extended to width bits.

Parameters

NameDescription
widthNew bit width