1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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. */
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());
}