git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179272
91177308-0d34-0410-b5e6-
96231b3b80d8
/** See llvm::createLoopVectorizePass function. */
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
+/** See llvm::createSLPVectorizerPass function. */
+void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM);
+
/**
* @}
*/
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[] = {
- //===-- Vectorize.cpp -----------------------------------------------------===//
+//===-- Vectorize.cpp -----------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
unwrap(PM)->add(createLoopVectorizePass());
}
-void LLVMAddLoopRollerPass(LLVMPassManagerRef PM) {
+void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createSLPVectorizerPass());
}