From c86fdf12e85215777cfdc1d5074e73b0118fa42f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 11 Apr 2013 11:36:36 +0000 Subject: [PATCH] Rename the C function to create a SLPVectorizerPass to something sane and expose it in the header file. llvm-svn: 179272 --- llvm/include/llvm-c/Transforms/Vectorize.h | 3 +++ llvm/lib/DebugInfo/DWARFFormValue.cpp | 5 +++-- llvm/lib/Transforms/Vectorize/Vectorize.cpp | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm-c/Transforms/Vectorize.h b/llvm/include/llvm-c/Transforms/Vectorize.h index 68a9bdd..c9102da 100644 --- a/llvm/include/llvm-c/Transforms/Vectorize.h +++ b/llvm/include/llvm-c/Transforms/Vectorize.h @@ -39,6 +39,9 @@ void LLVMAddBBVectorizePass(LLVMPassManagerRef PM); /** See llvm::createLoopVectorizePass function. */ void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM); +/** See llvm::createSLPVectorizerPass function. */ +void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM); + /** * @} */ diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp index 2e16db9..2876fca 100644 --- a/llvm/lib/DebugInfo/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp @@ -18,10 +18,11 @@ using namespace llvm; using namespace dwarf; -template -struct FixedFormSizes { +namespace { +template struct FixedFormSizes { static const uint8_t sizes[]; }; +} template const uint8_t FixedFormSizes::sizes[] = { diff --git a/llvm/lib/Transforms/Vectorize/Vectorize.cpp b/llvm/lib/Transforms/Vectorize/Vectorize.cpp index 3aff636..a927fe1 100644 --- a/llvm/lib/Transforms/Vectorize/Vectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/Vectorize.cpp @@ -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()); } -- 2.7.4