Bitwise conjunction assignment operators

Synopses

Declared in <llvm/Transforms/IPO/Attributor.h>

Assign CHANGED only if both operands are CHANGED.

Intersect LHS with *RHS in place.

template<unsigned int ElementSize>
bool
operator&=(
    SparseBitVector<ElementSize>& LHS,
    SparseBitVector<ElementSize> const* RHS);

Intersect *LHS with RHS in place.

template<unsigned int ElementSize>
bool
operator&=(
    SparseBitVector<ElementSize>* LHS,
    SparseBitVector<ElementSize> const& RHS);

Return Value

  • Whether the state or IR changed.

  • True if any bit in LHS changed.

  • True if any bit in *LHS changed.

Parameters

Name

Description

l

The left‐hand change status (updated in place).

r

The right‐hand change status.

LHS

Sparse bit vector updated in place.

RHS

Pointer to the sparse bit vector whose bits are retained.

Created with MrDocs