Bitwise exclusive‐or operators

Synopses

Declared in <llvm/ADT/APInt.h>

Bitwise XOR of an APInt and a 64‐bit value.

APInt
operatorˆ(
    APInt a,
    uint64_t RHS);

Bitwise XOR of two APInts.

APInt
operatorˆ(
    APInt a,
    APInt const& b);

Bitwise XOR of two KnownBits values.

Bitwise XOR of a 64‐bit value and an APInt.

APInt
operatorˆ(
    uint64_t LHS,
    APInt b);

Bitwise XOR that prefers moving from b.

APInt
operatorˆ(
    APInt const& a,
    APInt&& b);

Bitwise XOR of two KnownBits values.

KnownBits
operatorˆ(
    KnownBits const& LHS,
    KnownBits&& RHS);

Return the bitwise XOR of LHS and RHS.

Return Value

  • The bitwise XOR of a and RHS.

  • The bitwise XOR of a and b.

  • Known bits of the bitwise XOR.

  • The bitwise XOR of LHS and b.

  • New bit vector with bits set where LHS and RHS differ.

Parameters

Name

Description

a

Left‐hand APInt

RHS

Right‐hand 64‐bit value

b

Right‐hand operand

LHS

Left‐hand known bits (taken by value).

Created with MrDocs