LLVM  3.7.0
Vectorize.cpp
Go to the documentation of this file.
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.
13 //
14 //===----------------------------------------------------------------------===//
15 
17 #include "llvm-c/Initialization.h"
19 #include "llvm/Analysis/Passes.h"
20 #include "llvm/IR/Verifier.h"
21 #include "llvm/InitializePasses.h"
23 
24 using namespace llvm;
25 
26 /// initializeVectorizationPasses - Initialize all passes linked into the
27 /// Vectorization library.
29  initializeBBVectorizePass(Registry);
32 }
33 
36 }
37 
39  unwrap(PM)->add(createBBVectorizePass());
40 }
41 
43  unwrap(PM)->add(createLoopVectorizePass());
44 }
45 
47  unwrap(PM)->add(createSLPVectorizerPass());
48 }
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition: Registry.h:61
void initializeBBVectorizePass(PassRegistry &)
void initializeLoopVectorizePass(PassRegistry &)
void LLVMInitializeVectorization(LLVMPassRegistryRef R)
Definition: Vectorize.cpp:34
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM)
See llvm::createSLPVectorizerPass function.
Definition: Vectorize.cpp:46
Pass * createLoopVectorizePass(bool NoUnrolling=false, bool AlwaysVectorize=true)
DataLayout * unwrap(LLVMTargetDataRef P)
Definition: DataLayout.h:465
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Core.h:119
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM)
See llvm::createBBVectorizePass function.
Definition: Vectorize.cpp:38
BasicBlockPass * createBBVectorizePass(const VectorizeConfig &C=VectorizeConfig())
void initializeSLPVectorizerPass(PassRegistry &)
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Core.h:116
Pass * createSLPVectorizerPass()
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM)
See llvm::createLoopVectorizePass function.
Definition: Vectorize.cpp:42
void initializeVectorization(PassRegistry &)
initializeVectorization - Initialize all passes linked into the Vectorize library.
Definition: Vectorize.cpp:28
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:41