LLVM 19.0.0git
Public Member Functions | List of all members
llvm::IntrinsicCostAttributes Class Reference

#include "llvm/Analysis/TargetTransformInfo.h"

Public Member Functions

 IntrinsicCostAttributes (Intrinsic::ID Id, const CallBase &CI, InstructionCost ScalarCost=InstructionCost::getInvalid(), bool TypeBasedOnly=false)
 
 IntrinsicCostAttributes (Intrinsic::ID Id, Type *RTy, ArrayRef< Type * > Tys, FastMathFlags Flags=FastMathFlags(), const IntrinsicInst *I=nullptr, InstructionCost ScalarCost=InstructionCost::getInvalid())
 
 IntrinsicCostAttributes (Intrinsic::ID Id, Type *RTy, ArrayRef< const Value * > Args)
 
 IntrinsicCostAttributes (Intrinsic::ID Id, Type *RTy, ArrayRef< const Value * > Args, ArrayRef< Type * > Tys, FastMathFlags Flags=FastMathFlags(), const IntrinsicInst *I=nullptr, InstructionCost ScalarCost=InstructionCost::getInvalid())
 
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
 
bool isTypeBasedOnly () const
 
bool skipScalarizationCost () const
 

Detailed Description

Definition at line 120 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 
)

◆ 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 95 of file TargetTransformInfo.cpp.

References getType(), Idx, and Size.

◆ 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() 
)

Member Function Documentation

◆ getArgs()

const SmallVectorImpl< const Value * > & llvm::IntrinsicCostAttributes::getArgs ( ) const
inline

◆ getArgTypes()

const SmallVectorImpl< Type * > & llvm::IntrinsicCostAttributes::getArgTypes ( ) const
inline

◆ getFlags()

FastMathFlags llvm::IntrinsicCostAttributes::getFlags ( ) const
inline

◆ getID()

Intrinsic::ID llvm::IntrinsicCostAttributes::getID ( ) const
inline

◆ getInst()

const IntrinsicInst * llvm::IntrinsicCostAttributes::getInst ( ) const
inline

◆ getReturnType()

Type * llvm::IntrinsicCostAttributes::getReturnType ( ) const
inline

◆ 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: