class TargetTransformInfoImplCRTPBase

Declaration

template <typename T>
class TargetTransformInfoImplCRTPBase
    : public TargetTransformInfoImplBase { /* full declaration omitted */ };

Description

CRTP base class for use as a mix-in that aids implementing a TargetTransformInfo-compatible class.

Declared at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:909

Inherits from: TargetTransformInfoImplBase

Templates

T

Member Variables

Inherited from TargetTransformInfoImplBase:

protected DL

Method Overview

  • protected TargetTransformInfoImplCRTPBase<T>(const llvm::DataLayout & DL)
  • public llvm::InstructionCost getGEPCost(llvm::Type * PointeeType, const llvm::Value * Ptr, ArrayRef<const llvm::Value *> Operands, TTI::TargetCostKind CostKind)
  • public llvm::InstructionCost getInstructionLatency(const llvm::Instruction * I)
  • public llvm::InstructionCost getUserCost(const llvm::User * U, ArrayRef<const llvm::Value *> Operands, TTI::TargetCostKind CostKind)

Inherited from TargetTransformInfoImplBase:

Methods

TargetTransformInfoImplCRTPBase<T>(
    const llvm::DataLayout& DL)

Declared at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:914

Parameters

const llvm::DataLayout& DL

llvm::InstructionCost getGEPCost(
    llvm::Type* PointeeType,
    const llvm::Value* Ptr,
    ArrayRef<const llvm::Value*> Operands,
    TTI::TargetCostKind CostKind)

Declared at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:919

Parameters

llvm::Type* PointeeType
const llvm::Value* Ptr
ArrayRef<const llvm::Value*> Operands
TTI::TargetCostKind CostKind

llvm::InstructionCost getInstructionLatency(
    const llvm::Instruction* I)

Declared at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:1241

Parameters

const llvm::Instruction* I

llvm::InstructionCost getUserCost(
    const llvm::User* U,
    ArrayRef<const llvm::Value*> Operands,
    TTI::TargetCostKind CostKind)

Declared at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:982

Parameters

const llvm::User* U
ArrayRef<const llvm::Value*> Operands
TTI::TargetCostKind CostKind