llvm::isConstOrConstSplatFP

isConstOrConstSplatFP overloads

Synopses

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

Returns the SDNode if it is a constant splat BuildVector or constant float.

ConstantFPSDNode*
isConstOrConstSplatFP(
    SDValue N,
    bool AllowUndefs = false);
» more...

Returns the SDNode if it is a demanded constant splat BuildVector or constant float.

ConstantFPSDNode*
isConstOrConstSplatFP(
    SDValue N,
    APInt const& DemandedElts,
    bool AllowUndefs = false);
» more...

Return Value

  • The SDNode if it is a constant splat BuildVector or constant float.
  • The SDNode if it is a demanded constant splat BuildVector or constant float.

Parameters

NameDescription
NValue to inspect.
AllowUndefsWhether undef elements are permitted.
DemandedEltsElements that must participate in the splat.