Rename the C function to create a SLPVectorizerPass to something sane and expose it in the header file.

llvm-svn: 179272
This commit is contained in:
Benjamin Kramer 2013-04-11 11:36:36 +00:00
parent 877d1576e6
commit cf2731d0e0
3 changed files with 8 additions and 4 deletions

View File

@ -39,6 +39,9 @@ void LLVMAddBBVectorizePass(LLVMPassManagerRef PM);
/** See llvm::createLoopVectorizePass function. */ /** See llvm::createLoopVectorizePass function. */
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM); void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
/** See llvm::createSLPVectorizerPass function. */
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM);
/** /**
* @} * @}
*/ */

View File

@ -18,10 +18,11 @@
using namespace llvm; using namespace llvm;
using namespace dwarf; using namespace dwarf;
template <uint8_t AddrSize, uint8_t RefAddrSize> namespace {
struct FixedFormSizes { template <uint8_t AddrSize, uint8_t RefAddrSize> struct FixedFormSizes {
static const uint8_t sizes[]; static const uint8_t sizes[];
}; };
}
template <uint8_t AddrSize, uint8_t RefAddrSize> template <uint8_t AddrSize, uint8_t RefAddrSize>
const uint8_t FixedFormSizes<AddrSize, RefAddrSize>::sizes[] = { const uint8_t FixedFormSizes<AddrSize, RefAddrSize>::sizes[] = {

View File

@ -1,4 +1,4 @@
//===-- Vectorize.cpp -----------------------------------------------------===// //===-- Vectorize.cpp -----------------------------------------------------===//
// //
// The LLVM Compiler Infrastructure // The LLVM Compiler Infrastructure
// //
@ -43,6 +43,6 @@ void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createLoopVectorizePass()); unwrap(PM)->add(createLoopVectorizePass());
} }
void LLVMAddLoopRollerPass(LLVMPassManagerRef PM) { void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createSLPVectorizerPass()); unwrap(PM)->add(createSLPVectorizerPass());
} }