Add VectorTargetTransform::getNumberOfParts.

As discussed on IRC, add VectorTargetTransform::getNumberOfParts
to provide a stable interface to the vector legalization splitting factor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hal Finkel
2012-10-26 04:28:02 +00:00
parent 6b0db5f372
commit 102a7c088c
3 changed files with 15 additions and 0 deletions

View File

@ -68,6 +68,8 @@ public:
virtual unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
unsigned Alignment,
unsigned AddressSpace) const;
virtual unsigned getNumberOfParts(Type *Tp) const;
};
} // end llvm namespace