Files
llvm-project/llvm/lib/Transforms/Vectorize/Vectorize.cpp
T

48 lines
1.6 KiB
C++
Raw Normal View History

//===-- Vectorize.cpp -----------------------------------------------------===//
2012-02-01 03:51:43 +00:00
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
2012-10-17 18:25:06 +00:00
// This file implements common infrastructure for libLLVMVectorizeOpts.a, which
2012-02-01 03:51:43 +00:00
// implements several vectorization transformations over the LLVM intermediate
// representation, including the C bindings for that library.
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Vectorize.h"
2012-02-01 03:51:43 +00:00
#include "llvm-c/Initialization.h"
#include "llvm-c/Transforms/Vectorize.h"
2012-02-01 03:51:43 +00:00
#include "llvm/Analysis/Passes.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/InitializePasses.h"
2012-02-01 03:51:43 +00:00
using namespace llvm;
2012-10-17 18:25:06 +00:00
/// initializeVectorizationPasses - Initialize all passes linked into the
2012-02-01 03:51:43 +00:00
/// Vectorization library.
void llvm::initializeVectorization(PassRegistry &Registry) {
2012-10-17 18:25:06 +00:00
initializeLoopVectorizePass(Registry);
initializeSLPVectorizerPass(Registry);
2016-06-30 23:11:38 +00:00
initializeLoadStoreVectorizerPass(Registry);
2012-02-01 03:51:43 +00:00
}
void LLVMInitializeVectorization(LLVMPassRegistryRef R) {
initializeVectorization(*unwrap(R));
}
2017-06-30 07:09:08 +00:00
// DEPRECATED: Remove after the LLVM 5 release.
2012-02-01 03:51:43 +00:00
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) {
}
2012-10-17 18:25:06 +00:00
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createLoopVectorizePass());
2012-10-17 18:25:06 +00:00
}
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createSLPVectorizerPass());
}