Returns the SDNode if it is a demanded constant splat BuildVector or constant float.
Declared in <llvm/CodeGen/SelectionDAGNodes.h>
ConstantFPSDNode*
isConstOrConstSplatFP(
SDValue N,
APInt const& DemandedElts,
bool AllowUndefs = false);
The SDNode if it is a demanded constant splat BuildVector or constant float.
| Name | Description |
|---|---|
| N | Value to inspect. |
| DemandedElts | Elements that must participate in the splat. |
| AllowUndefs | Whether undef elements are permitted. |