mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Fix the enumerator names for ShuffleKind to match tho coding standards,
and make its comments doxygen comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1b8ef97c4
commit
bb00800ff4
@ -135,11 +135,12 @@ public:
|
|||||||
/// \name Vector Target Information
|
/// \name Vector Target Information
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
/// \brief The various kinds of shuffle patterns for vector queries.
|
||||||
enum ShuffleKind {
|
enum ShuffleKind {
|
||||||
Broadcast, // Broadcast element 0 to all other elements.
|
SK_Broadcast, ///< Broadcast element 0 to all other elements.
|
||||||
Reverse, // Reverse the order of the vector.
|
SK_Reverse, ///< Reverse the order of the vector.
|
||||||
InsertSubvector, // InsertSubvector. Index indicates start offset.
|
SK_InsertSubvector, ///< InsertSubvector. Index indicates start offset.
|
||||||
ExtractSubvector // ExtractSubvector Index indicates start offset.
|
SK_ExtractSubvector ///< ExtractSubvector Index indicates start offset.
|
||||||
};
|
};
|
||||||
|
|
||||||
/// \return The number of scalar or vector registers that the target has.
|
/// \return The number of scalar or vector registers that the target has.
|
||||||
|
@ -204,7 +204,7 @@ unsigned X86TTI::getArithmeticInstrCost(unsigned Opcode, Type *Ty) const {
|
|||||||
unsigned X86TTI::getShuffleCost(ShuffleKind Kind, Type *Tp, int Index,
|
unsigned X86TTI::getShuffleCost(ShuffleKind Kind, Type *Tp, int Index,
|
||||||
Type *SubTp) const {
|
Type *SubTp) const {
|
||||||
// We only estimate the cost of reverse shuffles.
|
// We only estimate the cost of reverse shuffles.
|
||||||
if (Kind != Reverse)
|
if (Kind != SK_Reverse)
|
||||||
return TargetTransformInfo::getShuffleCost(Kind, Tp, Index, SubTp);
|
return TargetTransformInfo::getShuffleCost(Kind, Tp, Index, SubTp);
|
||||||
|
|
||||||
std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(Tp);
|
std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(Tp);
|
||||||
|
@ -2437,7 +2437,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) {
|
|||||||
SI->getAlignment(),
|
SI->getAlignment(),
|
||||||
SI->getPointerAddressSpace());
|
SI->getPointerAddressSpace());
|
||||||
if (Reverse)
|
if (Reverse)
|
||||||
Cost += TTI->getShuffleCost(TargetTransformInfo::Reverse,
|
Cost += TTI->getShuffleCost(TargetTransformInfo::SK_Reverse,
|
||||||
VectorTy, 0);
|
VectorTy, 0);
|
||||||
return Cost;
|
return Cost;
|
||||||
}
|
}
|
||||||
@ -2479,7 +2479,7 @@ LoopVectorizationCostModel::getInstructionCost(Instruction *I, unsigned VF) {
|
|||||||
LI->getAlignment(),
|
LI->getAlignment(),
|
||||||
LI->getPointerAddressSpace());
|
LI->getPointerAddressSpace());
|
||||||
if (Reverse)
|
if (Reverse)
|
||||||
Cost += TTI->getShuffleCost(TargetTransformInfo::Reverse,
|
Cost += TTI->getShuffleCost(TargetTransformInfo::SK_Reverse,
|
||||||
VectorTy, 0);
|
VectorTy, 0);
|
||||||
return Cost;
|
return Cost;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user