LLVM  6.0.0svn
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"
21 #include "llvm/InitializePasses.h"
22 
23 using namespace llvm;
24 
25 /// initializeVectorizationPasses - Initialize all passes linked into the
26 /// Vectorization library.
31 }
32 
35 }
36 
37 // DEPRECATED: Remove after the LLVM 5 release.
39 }
40 
42  unwrap(PM)->add(createLoopVectorizePass());
43 }
44 
46  unwrap(PM)->add(createSLPVectorizerPass());
47 }
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition: Registry.h:45
void initializeLoopVectorizePass(PassRegistry &)
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Types.h:117
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:195
void LLVMInitializeVectorization(LLVMPassRegistryRef R)
Definition: Vectorize.cpp:33
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM)
See llvm::createSLPVectorizerPass function.
Definition: Vectorize.cpp:45
void initializeLoadStoreVectorizerPass(PassRegistry &)
Pass * createLoopVectorizePass(bool NoUnrolling=false, bool AlwaysVectorize=true)
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM)
DEPRECATED - Use LLVMAddSLPVectorizePass.
Definition: Vectorize.cpp:38
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:114
void initializeSLPVectorizerPass(PassRegistry &)
Pass * createSLPVectorizerPass()
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM)
See llvm::createLoopVectorizePass function.
Definition: Vectorize.cpp:41
void initializeVectorization(PassRegistry &)
Initialize all passes linked into the Vectorize library.
Definition: Vectorize.cpp:27
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:39