Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Transforms/Utils/Utils.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
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 defines the common initialization infrastructure for the
10
// TransformUtils library.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#include "llvm/Transforms/Utils.h"
15
#include "llvm-c/Initialization.h"
16
#include "llvm-c/Transforms/Utils.h"
17
#include "llvm/IR/LegacyPassManager.h"
18
#include "llvm/InitializePasses.h"
19
#include "llvm/PassRegistry.h"
20
21
using namespace llvm;
22
23
/// initializeTransformUtils - Initialize all passes in the TransformUtils
24
/// library.
25
11.0k
void llvm::initializeTransformUtils(PassRegistry &Registry) {
26
11.0k
  initializeAddDiscriminatorsLegacyPassPass(Registry);
27
11.0k
  initializeBreakCriticalEdgesPass(Registry);
28
11.0k
  initializeCanonicalizeAliasesLegacyPassPass(Registry);
29
11.0k
  initializeInstNamerPass(Registry);
30
11.0k
  initializeLCSSAWrapperPassPass(Registry);
31
11.0k
  initializeLibCallsShrinkWrapLegacyPassPass(Registry);
32
11.0k
  initializeLoopSimplifyPass(Registry);
33
11.0k
  initializeLowerInvokeLegacyPassPass(Registry);
34
11.0k
  initializeLowerSwitchPass(Registry);
35
11.0k
  initializeNameAnonGlobalLegacyPassPass(Registry);
36
11.0k
  initializePromoteLegacyPassPass(Registry);
37
11.0k
  initializeStripNonLineTableDebugInfoPass(Registry);
38
11.0k
  initializeUnifyFunctionExitNodesPass(Registry);
39
11.0k
  initializeMetaRenamerPass(Registry);
40
11.0k
  initializeStripGCRelocatesPass(Registry);
41
11.0k
  initializePredicateInfoPrinterLegacyPassPass(Registry);
42
11.0k
}
43
44
/// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
45
0
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) {
46
0
  initializeTransformUtils(*unwrap(R));
47
0
}
48
49
0
void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM) {
50
0
  unwrap(PM)->add(createLowerSwitchPass());
51
0
}
52
53
0
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM) {
54
0
  unwrap(PM)->add(createPromoteMemoryToRegisterPass());
55
0
}
56
57
0
void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM) {
58
0
  unwrap(PM)->add(createAddDiscriminatorsPass());
59
0
}