From: Benjamin Kramer Date: Thu, 11 Apr 2013 11:36:36 +0000 (+0000) Subject: Rename the C function to create a SLPVectorizerPass to something sane and expose... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=acc897a5e1bd7320da5aab728b9e0c39552f3816;p=oota-llvm.git 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 --- diff --git a/include/llvm-c/Transforms/Vectorize.h b/include/llvm-c/Transforms/Vectorize.h index 68a9bdd3885..c9102da6029 100644 --- a/include/llvm-c/Transforms/Vectorize.h +++ b/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/lib/DebugInfo/DWARFFormValue.cpp b/lib/DebugInfo/DWARFFormValue.cpp index 2e16db9bab6..2876fca07c0 100644 --- a/lib/DebugInfo/DWARFFormValue.cpp +++ b/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/lib/Transforms/Vectorize/Vectorize.cpp b/lib/Transforms/Vectorize/Vectorize.cpp index 3aff6366a6c..a927fe14517 100644 --- a/lib/Transforms/Vectorize/Vectorize.cpp +++ b/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()); }