llvm::operator-

Unary minus operators

Synopses

Declared in <llvm/ADT/DynamicAPInt.h>

Negate an APInt.

APInt
operator-(APInt v);
» more...

Subtract a 64-bit value from an APInt.

APInt
operator-(
    APInt a,
    uint64_t RHS);
» more...

Subtract two APInts.

APInt
operator-(
    APInt a,
    APInt const& b);
» more...

Returns A minus B.

DynamicAPInt
operator-(
    int64_t A,
    DynamicAPInt const& B);
» more...

Subtract an APInt from a 64-bit value.

APInt
operator-(
    uint64_t LHS,
    APInt b);
» more...

Subtract that prefers moving from b.

APInt
operator-(
    APInt const& a,
    APInt&& b);
» more...

Returns A minus B.

DynamicAPInt
operator-(
    DynamicAPInt const& A,
    int64_t B);
» more...

Return the saturating difference of LHS and RHS.

InstructionCost
operator-(
    InstructionCost const& LHS,
    InstructionCost const& RHS);
» more...

Return the difference of L and R using saturating arithmetic.

template<class DigitsT>
ScaledNumber<DigitsT>
operator-(
    ScaledNumber<DigitsT> const& L,
    ScaledNumber<DigitsT> const& R);
» more...

Return a sparse bit vector with bits of LHS that are clear in RHS.

template<unsigned int ElementSize>
SparseBitVector<ElementSize>
operator-(
    SparseBitVector<ElementSize> const& LHS,
    SparseBitVector<ElementSize> const& RHS);
» more...

Return Value

  • The negation of v.
  • The difference of a and RHS.
  • The difference of a and b.
  • Difference of A and B.
  • The difference of LHS and b.
  • The saturating difference of LHS and RHS.
  • Difference of L and R.
  • New vector equal to LHS intersected with the complement of RHS.

Parameters

NameDescription
vValue to negate
aLeft-hand APInt
RHSRight-hand 64-bit value
bRight-hand operand
ALeft-hand operand.
BRight-hand operand.
LHSLeft-hand 64-bit value
LLeft-hand scaled number.
RRight-hand scaled number.