Return true if the value is an FP 1.0 constant or splat.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

bool
isOneOrOneSplatFP(
    SDValue V,
    bool AllowUndefs = false);

Return Value

True if the value is a constant floating‐point value, or a splatted vector of a constant floating‐point value, of 1.0 (with no undefs).

Parameters

Name

Description

V

Value to test.

AllowUndefs

Whether undef elements are permitted.

Created with MrDocs