struct IncIntegerState

Declaration

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

Description

Specialization of the integer state for an increasing value, hence ~0u is the best state and 0 the worst.

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

Templates

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

Method Overview

Methods

IncIntegerState<base_ty, BestState, WorstState>()

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

IncIntegerState<base_ty, BestState, WorstState>(
    llvm::IncIntegerState::base_t Assumed)

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

Parameters

llvm::IncIntegerState::base_t Assumed

static constexpr llvm::IncIntegerState::base_t
getBestState()

Description

Return the best possible representable state.

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

static constexpr llvm::IncIntegerState::base_t
getBestState(const IncIntegerState<base_ty,
                                   BestState,
                                   WorstState>&)

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

Parameters

const IncIntegerState<base_ty, BestState, WorstState>&

void handleNewAssumedValue(
    llvm::IncIntegerState::base_t Value)

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

Parameters

llvm::IncIntegerState::base_t Value

void handleNewKnownValue(
    llvm::IncIntegerState::base_t Value)

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

Parameters

llvm::IncIntegerState::base_t Value

void joinAND(
    llvm::IncIntegerState::base_t AssumedValue,
    llvm::IncIntegerState::base_t KnownValue)

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

Parameters

llvm::IncIntegerState::base_t AssumedValue
llvm::IncIntegerState::base_t KnownValue

void joinOR(
    llvm::IncIntegerState::base_t AssumedValue,
    llvm::IncIntegerState::base_t KnownValue)

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

Parameters

llvm::IncIntegerState::base_t AssumedValue
llvm::IncIntegerState::base_t KnownValue

IncIntegerState<base_ty, BestState, WorstState>&
takeAssumedMinimum(
    llvm::IncIntegerState::base_t Value)

Description

Take minimum of assumed and \p Value.

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

Parameters

llvm::IncIntegerState::base_t Value

IncIntegerState<base_ty, BestState, WorstState>&
takeKnownMaximum(
    llvm::IncIntegerState::base_t Value)

Description

Take maximum of known and \p Value.

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

Parameters

llvm::IncIntegerState::base_t Value