class LinearPolyBase

Declaration

template <typename LeafTy>
class LinearPolyBase { /* full declaration omitted */ };

Description

LinearPolyBase describes a linear polynomial: c0 * scale0 + c1 * scale1 + ... + cK * scaleK where the scale is implicit, so only the coefficients are encoded.

Declared at: llvm/include/llvm/Support/TypeSize.h:46

Templates

LeafTy

Member Variables

private std::array<ScalarTy, Dimensions> Coefficients
public static const auto Dimensions = LinearPolyBaseTypeTraits<type-parameter-0-0>::Dimensions

Method Overview

Methods

LinearPolyBase<LeafTy>(
    ArrayRef<llvm::LinearPolyBase::ScalarTy>
        Values)

Declared at: llvm/include/llvm/Support/TypeSize.h:57

Parameters

ArrayRef<llvm::LinearPolyBase::ScalarTy> Values

llvm::LinearPolyBase::ScalarTy getValue(
    unsigned int Dim) const

Declared at: llvm/include/llvm/Support/TypeSize.h:117

Parameters

unsigned int Dim

bool isNonZero() const

Declared at: llvm/include/llvm/Support/TypeSize.h:114

bool isZero() const

Declared at: llvm/include/llvm/Support/TypeSize.h:111

bool operator bool() const

Declared at: llvm/include/llvm/Support/TypeSize.h:115