diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-11 11:36:36 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-11 11:36:36 +0000 |
| commit | acc897a5e1bd7320da5aab728b9e0c39552f3816 (patch) | |
| tree | 96f43f27424ee9d29db971c30df3be02fbd2f940 /lib | |
| parent | bf53841cfe3c341ebc0fca102d641c2018855254 (diff) | |
| download | external_llvm-acc897a5e1bd7320da5aab728b9e0c39552f3816.zip external_llvm-acc897a5e1bd7320da5aab728b9e0c39552f3816.tar.gz external_llvm-acc897a5e1bd7320da5aab728b9e0c39552f3816.tar.bz2 | |
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
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/DebugInfo/DWARFFormValue.cpp | 5 | ||||
| -rw-r--r-- | lib/Transforms/Vectorize/Vectorize.cpp | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/DebugInfo/DWARFFormValue.cpp b/lib/DebugInfo/DWARFFormValue.cpp index 2e16db9..2876fca 100644 --- a/lib/DebugInfo/DWARFFormValue.cpp +++ b/lib/DebugInfo/DWARFFormValue.cpp @@ -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[] = { diff --git a/lib/Transforms/Vectorize/Vectorize.cpp b/lib/Transforms/Vectorize/Vectorize.cpp index 3aff636..a927fe1 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()); } |
