Remove the default clause from a fully-covering switch
[llvm-core.git] / lib / Transforms / Vectorize / Vectorize.cpp
blobfb2f509dcbaa9277d13d6d481ba8ba8980de4aa9
1 //===-- Vectorize.cpp -----------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements common infrastructure for libLLVMVectorizeOpts.a, which
11 // implements several vectorization transformations over the LLVM intermediate
12 // representation, including the C bindings for that library.
14 //===----------------------------------------------------------------------===//
16 #include "llvm/Transforms/Vectorize.h"
17 #include "llvm-c/Initialization.h"
18 #include "llvm-c/Transforms/Vectorize.h"
19 #include "llvm/Analysis/Passes.h"
20 #include "llvm/IR/LegacyPassManager.h"
21 #include "llvm/IR/Verifier.h"
22 #include "llvm/InitializePasses.h"
24 using namespace llvm;
26 /// initializeVectorizationPasses - Initialize all passes linked into the
27 /// Vectorization library.
28 void llvm::initializeVectorization(PassRegistry &Registry) {
29 initializeLoopVectorizePass(Registry);
30 initializeSLPVectorizerPass(Registry);
31 initializeLoadStoreVectorizerPass(Registry);
34 void LLVMInitializeVectorization(LLVMPassRegistryRef R) {
35 initializeVectorization(*unwrap(R));
38 // DEPRECATED: Remove after the LLVM 5 release.
39 void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) {
42 void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
43 unwrap(PM)->add(createLoopVectorizePass());
46 void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM) {
47 unwrap(PM)->add(createSLPVectorizerPass());