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/IR/Verifier.h"
22 #include "llvm/InitializePasses.h"
23 
24 using namespace llvm;
25 
26 /// initializeVectorizationPasses - Initialize all passes linked into the
27 /// Vectorization library.
32 }
33 
36 }
37 
38 // DEPRECATED: Remove after the LLVM 5 release.
40 }
41 
43  unwrap(PM)->add(createLoopVectorizePass());
44 }
45 
47  unwrap(PM)->add(createSLPVectorizerPass());
48 }
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:34
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM)
See llvm::createSLPVectorizerPass function.
Definition: Vectorize.cpp:46
void initializeLoadStoreVectorizerPass(PassRegistry &)
Pass * createLoopVectorizePass(bool NoUnrolling=false, bool AlwaysVectorize=true)
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM)
DEPRECATED - Use LLVMAddSLPVectorizePass.
Definition: Vectorize.cpp:39
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:114
void initializeSLPVectorizerPass(PassRegistry &)
Pass * createSLPVectorizerPass()
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM)
See llvm::createLoopVectorizePass function.
Definition: Vectorize.cpp:42
void initializeVectorization(PassRegistry &)
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:39