Coverage Report

Created: 2017-10-03 07:32

/Users/buildslave/jenkins/sharedspace/clang-stage2-coverage-R@2/llvm/lib/Transforms/Vectorize/Vectorize.cpp
Line
Count
Source (jump to first uncovered line)
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
16
#include "llvm/Transforms/Vectorize.h"
17
#include "llvm-c/Initialization.h"
18
#include "llvm-c/Transforms/Vectorize.h"
19
#include "llvm/Analysis/Passes.h"
20
#include "llvm/IR/LegacyPassManager.h"
21
#include "llvm/IR/Verifier.h"
22
#include "llvm/InitializePasses.h"
23
24
using namespace llvm;
25
26
/// initializeVectorizationPasses - Initialize all passes linked into the
27
/// Vectorization library.
28
24.6k
void llvm::initializeVectorization(PassRegistry &Registry) {
29
24.6k
  initializeLoopVectorizePass(Registry);
30
24.6k
  initializeSLPVectorizerPass(Registry);
31
24.6k
  initializeLoadStoreVectorizerPass(Registry);
32
24.6k
}
33
34
0
void LLVMInitializeVectorization(LLVMPassRegistryRef R) {
35
0
  initializeVectorization(*unwrap(R));
36
0
}
37
38
// DEPRECATED: Remove after the LLVM 5 release.
39
0
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) {
40
0
}
41
42
0
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
43
0
  unwrap(PM)->add(createLoopVectorizePass());
44
0
}
45
46
0
void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM) {
47
0
  unwrap(PM)->add(createSLPVectorizerPass());
48
0
}