LLVM 20.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 119 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() 
)

Definition at line 85 of file TargetTransformInfo.cpp.

◆ IntrinsicCostAttributes() [3/4]

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

Definition at line 94 of file TargetTransformInfo.cpp.

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

Definition at line 104 of file TargetTransformInfo.cpp.

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: