llvm::Constant::mergeUndefsWith

Merge undef elements from Other into constant C.

Synopsis

Declared in <llvm/IR/Constant.h>

static
Constant*
mergeUndefsWith(
    Constant* C,
    Constant* Other);

Description

Merges undefs of a Constant with another Constant, along with the undefs already present. Other doesn't have to be the same type as C, but both must either be scalars or vectors with the same element count. If no changes are made, the constant C is returned.

Return Value

The merged constant, or C if unchanged.

Parameters

NameDescription
CThe constant whose undefs are merged.
OtherThe constant providing additional undef lanes.