llvm::Constant::containsUndefOrPoisonElement

Return true if this vector constant includes undef or poison elements.

Synopsis

Declared in <llvm/IR/Constant.h>

bool
containsUndefOrPoisonElement() const;

Description

Since it is impossible to inspect a scalable vector element-wise at compile time, this function returns true only if the entire vector is undef or poison.

Return Value

True if this vector constant includes undef or poison elements.