llvm::getICmpTrueVal

Returns an integer representing true, as defined by the TargetBooleanContents.

Synopsis

Declared in <llvm/CodeGen/GlobalISel/Utils.h>

int64_t
getICmpTrueVal(
    TargetLowering const& TLI,
    bool IsVector,
    bool IsFP);

Return Value

The integer encoding of true for icmp results.

Parameters

NameDescription
TLITarget lowering used for boolean contents.
IsVectorWhether the compare result is a vector.
IsFPWhether the compare is floating-point.