LLVM 22.0.0git
llvm::IntrinsicCostAttributes Class Reference

#include "llvm/Analysis/TargetTransformInfo.h"

Public Member Functions

LLVM_ABI IntrinsicCostAttributes (Intrinsic::ID Id, const CallBase &CI, InstructionCost ScalarCost=InstructionCost::getInvalid(), bool TypeBasedOnly=false, TargetLibraryInfo const *LibInfo=nullptr)
LLVM_ABI IntrinsicCostAttributes (Intrinsic::ID Id, Type *RTy, ArrayRef< Type * > Tys, FastMathFlags Flags=FastMathFlags(), const IntrinsicInst *I=nullptr, InstructionCost ScalarCost=InstructionCost::getInvalid())
LLVM_ABI IntrinsicCostAttributes (Intrinsic::ID Id, Type *RTy, ArrayRef< const Value * > Args)
LLVM_ABI IntrinsicCostAttributes (Intrinsic::ID Id, Type *RTy, ArrayRef< const Value * > Args, ArrayRef< Type * > Tys, FastMathFlags Flags=FastMathFlags(), const IntrinsicInst *I=nullptr, InstructionCost ScalarCost=InstructionCost::getInvalid(), TargetLibraryInfo const *LibInfo=nullptr)
Intrinsic::ID getID () const
const IntrinsicInstgetInst () const
TypegetReturnType () const
FastMathFlags getFlags () const
InstructionCost getScalarizationCost () const
const SmallVectorImpl< const Value * > & getArgs () const
const SmallVectorImpl< Type * > & getArgTypes () const
const TargetLibraryInfogetLibInfo () const
bool isTypeBasedOnly () const
bool skipScalarizationCost () const

Detailed Description

Definition at line 126 of file TargetTransformInfo.h.

Constructor & Destructor Documentation

◆ IntrinsicCostAttributes() [1/4]

IntrinsicCostAttributes::IntrinsicCostAttributes ( Intrinsic::ID Id,
const CallBase & CI,
InstructionCost ScalarCost = InstructionCost::getInvalid(),
bool TypeBasedOnly = false,
TargetLibraryInfo const * LibInfo = nullptr )

◆ IntrinsicCostAttributes() [2/4]

IntrinsicCostAttributes::IntrinsicCostAttributes ( Intrinsic::ID Id,
Type * RTy,
ArrayRef< Type * > Tys,
FastMathFlags Flags = FastMathFlags(),
const IntrinsicInst * I = nullptr,
InstructionCost ScalarCost = InstructionCost::getInvalid() )

◆ IntrinsicCostAttributes() [3/4]

IntrinsicCostAttributes::IntrinsicCostAttributes ( Intrinsic::ID Id,
Type * RTy,
ArrayRef< const Value * > Args )

Definition at line 99 of file TargetTransformInfo.cpp.

References for(), and llvm::Value::getType().

◆ IntrinsicCostAttributes() [4/4]

IntrinsicCostAttributes::IntrinsicCostAttributes ( Intrinsic::ID Id,
Type * RTy,
ArrayRef< const Value * > Args,
ArrayRef< Type * > Tys,
FastMathFlags Flags = FastMathFlags(),
const IntrinsicInst * I = nullptr,
InstructionCost ScalarCost = InstructionCost::getInvalid(),
TargetLibraryInfo const * LibInfo = nullptr )

Member Function Documentation

◆ getArgs()

◆ getArgTypes()

◆ getFlags()

◆ getID()

◆ getInst()

◆ getLibInfo()

const TargetLibraryInfo * llvm::IntrinsicCostAttributes::getLibInfo ( ) const
inline

Definition at line 166 of file TargetTransformInfo.h.

◆ getReturnType()

◆ getScalarizationCost()

InstructionCost llvm::IntrinsicCostAttributes::getScalarizationCost ( ) const
inline

◆ isTypeBasedOnly()

bool llvm::IntrinsicCostAttributes::isTypeBasedOnly ( ) const
inline

◆ skipScalarizationCost()

bool llvm::IntrinsicCostAttributes::skipScalarizationCost ( ) const
inline

The documentation for this class was generated from the following files: