LLVM  8.0.1
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 
38  unwrap(PM)->add(createLoopVectorizePass());
39 }
40 
42  unwrap(PM)->add(createSLPVectorizerPass());
43 }
This class represents lattice values for constants.
Definition: AllocatorList.h:24
Pass * createLoopVectorizePass(bool InterleaveOnlyWhenForced=false, bool VectorizeOnlyWhenForced=false)
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:131
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:41
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:128
void initializeSLPVectorizerPass(PassRegistry &)
Pass * createSLPVectorizerPass()
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM)
See llvm::createLoopVectorizePass function.
Definition: Vectorize.cpp:37
void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry &)
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