LLVM  14.0.0git
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 /// Initialize all passes linked into the Vectorization library.
30 }
31 
34 }
35 
37  unwrap(PM)->add(createLoopVectorizePass());
38 }
39 
41  unwrap(PM)->add(createSLPVectorizerPass());
42 }
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::initializeLoadStoreVectorizerLegacyPassPass
void initializeLoadStoreVectorizerLegacyPassPass(PassRegistry &)
LLVMPassRegistryRef
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Types.h:130
Vectorize.h
LLVMAddSLPVectorizePass
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM)
See llvm::createSLPVectorizerPass function.
Definition: Vectorize.cpp:40
LegacyPassManager.h
llvm::createSLPVectorizerPass
Pass * createSLPVectorizerPass()
Definition: SLPVectorizer.cpp:9395
llvm::PassRegistry
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:38
llvm::unwrap
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:256
LLVMInitializeVectorization
void LLVMInitializeVectorization(LLVMPassRegistryRef R)
Definition: Vectorize.cpp:32
LLVMPassManagerRef
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:127
llvm::initializeVectorCombineLegacyPassPass
void initializeVectorCombineLegacyPassPass(PassRegistry &)
llvm::initializeVectorization
void initializeVectorization(PassRegistry &)
Initialize all passes linked into the Vectorize library.
Definition: Vectorize.cpp:25
llvm::initializeLoopVectorizePass
void initializeLoopVectorizePass(PassRegistry &)
LLVMAddLoopVectorizePass
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM)
See llvm::createLoopVectorizePass function.
Definition: Vectorize.cpp:36
llvm::Registry
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition: Registry.h:44
Vectorize.h
llvm::initializeSLPVectorizerPass
void initializeSLPVectorizerPass(PassRegistry &)
InitializePasses.h
llvm::createLoopVectorizePass
Pass * createLoopVectorizePass()
Definition: LoopVectorize.cpp:7960
Initialization.h
Passes.h