struct BitIntegerState

Declaration

template <typename base_ty = uint32_t,
          base_ty BestState = ~type - parameter - 0 - 0(0),
          base_ty WorstState = 0>
struct BitIntegerState { /* full declaration omitted */ };

Description

Specialization of the integer state for a bit-wise encoding.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1340

Templates

base_ty = uint32_t
base_ty BestState = ~ type-parameter-0-0(0)
base_ty WorstState = 0

Method Overview

  • public BitIntegerState<base_ty, BestState, WorstState> & addKnownBits(llvm::BitIntegerState::base_t Bits)
  • public BitIntegerState<base_ty, BestState, WorstState> & intersectAssumedBits(llvm::BitIntegerState::base_t BitsEncoding)
  • public bool isAssumed(llvm::BitIntegerState::base_t BitsEncoding) const
  • public bool isKnown(llvm::BitIntegerState::base_t BitsEncoding) const
  • public BitIntegerState<base_ty, BestState, WorstState> & removeAssumedBits(llvm::BitIntegerState::base_t BitsEncoding)
  • public BitIntegerState<base_ty, BestState, WorstState> & removeKnownBits(llvm::BitIntegerState::base_t BitsEncoding)

Methods

BitIntegerState<base_ty, BestState, WorstState>&
addKnownBits(llvm::BitIntegerState::base_t Bits)

Description

Add the bits in \p BitsEncoding to the "known bits".

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1355

Parameters

llvm::BitIntegerState::base_t Bits

BitIntegerState<base_ty, BestState, WorstState>&
intersectAssumedBits(
    llvm::BitIntegerState::base_t BitsEncoding)

Description

Keep only "assumed bits" also set in \p BitsEncoding but all known ones.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1374

Parameters

llvm::BitIntegerState::base_t BitsEncoding

bool isAssumed(llvm::BitIntegerState::base_t
                   BitsEncoding) const

Description

Return true if the bits set in \p BitsEncoding are "assumed bits".

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1350

Parameters

llvm::BitIntegerState::base_t BitsEncoding

bool isKnown(llvm::BitIntegerState::base_t
                 BitsEncoding) const

Description

Return true if the bits set in \p BitsEncoding are "known bits".

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1345

Parameters

llvm::BitIntegerState::base_t BitsEncoding

BitIntegerState<base_ty, BestState, WorstState>&
removeAssumedBits(
    llvm::BitIntegerState::base_t BitsEncoding)

Description

Remove the bits in \p BitsEncoding from the "assumed bits" if not known.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1363

Parameters

llvm::BitIntegerState::base_t BitsEncoding

BitIntegerState<base_ty, BestState, WorstState>&
removeKnownBits(
    llvm::BitIntegerState::base_t BitsEncoding)

Description

Remove the bits in \p BitsEncoding from the "known bits".

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:1368

Parameters

llvm::BitIntegerState::base_t BitsEncoding