LLVM  10.0.0svn
Vectorize.cpp
Go to the documentation of this file.
1 //===-- Vectorize.cpp -----------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements common infrastructure for libLLVMVectorizeOpts.a, which
10 // implements several vectorization transformations over the LLVM intermediate
11 // representation, including the C bindings for that library.
12 //
13 //===----------------------------------------------------------------------===//
14 
16 #include "llvm-c/Initialization.h"
18 #include "llvm/Analysis/Passes.h"
20 #include "llvm/InitializePasses.h"
21 
22 using namespace llvm;
23 
24 /// initializeVectorizationPasses - Initialize all passes linked into the
25 /// Vectorization library.
30 }
31 
34 }
35 
37  unwrap(PM)->add(createLoopVectorizePass());
38 }
39 
41  unwrap(PM)->add(createSLPVectorizerPass());
42 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition: Registry.h:44
Pass * createLoopVectorizePass()
void initializeLoopVectorizePass(PassRegistry &)
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Types.h:131
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:204
void LLVMInitializeVectorization(LLVMPassRegistryRef R)
Definition: Vectorize.cpp:32
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM)
See llvm::createSLPVectorizerPass function.
Definition: Vectorize.cpp:40
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:128
void initializeSLPVectorizerPass(PassRegistry &)
Pass * createSLPVectorizerPass()
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM)
See llvm::createLoopVectorizePass function.
Definition: Vectorize.cpp:36
void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry &)
void initializeVectorization(PassRegistry &)
Initialize all passes linked into the Vectorize library.
Definition: Vectorize.cpp:26
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:38