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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179272 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-04-11 11:36:36 +00:00
parent bf53841cfe
commit acc897a5e1
3 changed files with 8 additions and 4 deletions

View File

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

View File

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

View File

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