xref: /llvm-project/llvm/lib/Transforms/Vectorize/Vectorize.cpp (revision 7c3c981442b11153ac1a2be678db727ff715253b)
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 
15 #include "llvm/Transforms/Vectorize.h"
16 #include "llvm-c/Initialization.h"
17 #include "llvm/IR/LegacyPassManager.h"
18 #include "llvm/InitializePasses.h"
19 #include "llvm/PassRegistry.h"
20 
21 using namespace llvm;
22 
23 /// Initialize all passes linked into the Vectorization library.
24 void llvm::initializeVectorization(PassRegistry &Registry) {
25   initializeLoadStoreVectorizerLegacyPassPass(Registry);
26 }
27 
28 void LLVMInitializeVectorization(LLVMPassRegistryRef R) {
29   initializeVectorization(*unwrap(R));
30 }
31