class InstructionCost

Declaration

class InstructionCost { /* full declaration omitted */ };

Declared at: llvm/include/llvm/Support/InstructionCost.h:29

Member Variables

private llvm::InstructionCost::CostType Value = 0
private llvm::InstructionCost::CostState State = Valid

Method Overview

  • public InstructionCost()
  • public InstructionCost(llvm::InstructionCost::CostState)
  • public InstructionCost(llvm::InstructionCost::CostType Val)
  • public static llvm::InstructionCost getInvalid(llvm::InstructionCost::CostType Val = 0)
  • public static llvm::InstructionCost getMax()
  • private static llvm::InstructionCost::CostType getMaxValue()
  • public static llvm::InstructionCost getMin()
  • private static llvm::InstructionCost::CostType getMinValue()
  • public llvm::InstructionCost::CostState getState() const
  • public Optional<llvm::InstructionCost::CostType> getValue() const
  • public bool isValid() const
  • public template <class Function>auto map(const Function & F) const -> llvm::InstructionCost
  • public void print(llvm::raw_ostream & OS) const
  • private void propagateState(const llvm::InstructionCost & RHS)
  • public void setInvalid()
  • public void setValid()

Methods

InstructionCost()

Declared at: llvm/include/llvm/Support/InstructionCost.h:66

InstructionCost(llvm::InstructionCost::CostState)

Declared at: llvm/include/llvm/Support/InstructionCost.h:68

Parameters

llvm::InstructionCost::CostState

InstructionCost(
    llvm::InstructionCost::CostType Val)

Declared at: llvm/include/llvm/Support/InstructionCost.h:69

Parameters

llvm::InstructionCost::CostType Val

static llvm::InstructionCost getInvalid(
    llvm::InstructionCost::CostType Val = 0)

Declared at: llvm/include/llvm/Support/InstructionCost.h:73

Parameters

llvm::InstructionCost::CostType Val = 0

static llvm::InstructionCost getMax()

Declared at: llvm/include/llvm/Support/InstructionCost.h:71

static llvm::InstructionCost::CostType
getMaxValue()

Declared at: llvm/include/llvm/Support/InstructionCost.h:61

static llvm::InstructionCost getMin()

Declared at: llvm/include/llvm/Support/InstructionCost.h:72

static llvm::InstructionCost::CostType
getMinValue()

Declared at: llvm/include/llvm/Support/InstructionCost.h:62

llvm::InstructionCost::CostState getState() const

Declared at: llvm/include/llvm/Support/InstructionCost.h:82

Optional<llvm::InstructionCost::CostType>
getValue() const

Description

This function is intended to be used as sparingly as possible, since the class provides the full range of operator support required for arithmetic and comparisons.

Declared at: llvm/include/llvm/Support/InstructionCost.h:87

bool isValid() const

Declared at: llvm/include/llvm/Support/InstructionCost.h:79

template <class Function>
auto map(const Function& F) const
    -> llvm::InstructionCost

Declared at: llvm/include/llvm/Support/InstructionCost.h:245

Templates

Function

Parameters

const Function& F

void print(llvm::raw_ostream& OS) const

Declared at: llvm/include/llvm/Support/InstructionCost.h:242

Parameters

llvm::raw_ostream& OS

void propagateState(
    const llvm::InstructionCost& RHS)

Declared at: llvm/include/llvm/Support/InstructionCost.h:56

Parameters

const llvm::InstructionCost& RHS

void setInvalid()

Declared at: llvm/include/llvm/Support/InstructionCost.h:81

void setValid()

Declared at: llvm/include/llvm/Support/InstructionCost.h:80