Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
Show First 20 Lines • Show All 744 Lines • ▼ Show 20 Lines | public: | ||||
bool shouldExpandReduction(const IntrinsicInst *II) const { return true; } | bool shouldExpandReduction(const IntrinsicInst *II) const { return true; } | ||||
unsigned getGISelRematGlobalCost() const { return 1; } | unsigned getGISelRematGlobalCost() const { return 1; } | ||||
bool supportsScalableVectors() const { return false; } | bool supportsScalableVectors() const { return false; } | ||||
bool hasActiveVectorLength() const { return false; } | bool hasActiveVectorLength() const { return false; } | ||||
TargetTransformInfo::VPLegalization | |||||
getVPLegalizationStrategy(const VPIntrinsic &PI) const { | |||||
return TargetTransformInfo::VPLegalization( | |||||
/* EVLParamStrategy */ TargetTransformInfo::VPLegalization::Discard, | |||||
/* OperatorStrategy */ TargetTransformInfo::VPLegalization::Convert); | |||||
} | |||||
protected: | protected: | ||||
// Obtain the minimum required size to hold the value (without the sign) | // Obtain the minimum required size to hold the value (without the sign) | ||||
// In case of a vector it returns the min required size for one element. | // In case of a vector it returns the min required size for one element. | ||||
unsigned minRequiredElementSize(const Value *Val, bool &isSigned) const { | unsigned minRequiredElementSize(const Value *Val, bool &isSigned) const { | ||||
if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) { | if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) { | ||||
const auto *VectorValue = cast<Constant>(Val); | const auto *VectorValue = cast<Constant>(Val); | ||||
// In case of a vector need to pick the max between the min | // In case of a vector need to pick the max between the min | ||||
▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines |