Coverage Report

Created: 2019-02-20 07:29

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/polly/include/polly/LinkAllPasses.h
Line
Count
Source (jump to first uncovered line)
1
//===- polly/LinkAllPasses.h ----------- Reference All Passes ---*- C++ -*-===//
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 header file pulls in all transformation and analysis passes for tools
10
// like opt and bugpoint that need this functionality.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef POLLY_LINKALLPASSES_H
15
#define POLLY_LINKALLPASSES_H
16
17
#include "polly/CodeGen/PPCGCodeGeneration.h"
18
#include "polly/Config/config.h"
19
#include "polly/PruneUnprofitable.h"
20
#include "polly/Simplify.h"
21
#include "polly/Support/DumpModulePass.h"
22
#include "llvm/ADT/StringRef.h"
23
#include <cstdlib>
24
25
namespace llvm {
26
class Pass;
27
class PassInfo;
28
class PassRegistry;
29
class RegionPass;
30
} // namespace llvm
31
32
namespace polly {
33
llvm::Pass *createCodePreparationPass();
34
llvm::Pass *createScopInlinerPass();
35
llvm::Pass *createDeadCodeElimPass();
36
llvm::Pass *createDependenceInfoPass();
37
llvm::Pass *createDependenceInfoWrapperPassPass();
38
llvm::Pass *createDOTOnlyPrinterPass();
39
llvm::Pass *createDOTOnlyViewerPass();
40
llvm::Pass *createDOTPrinterPass();
41
llvm::Pass *createDOTViewerPass();
42
llvm::Pass *createJSONExporterPass();
43
llvm::Pass *createJSONImporterPass();
44
llvm::Pass *createPollyCanonicalizePass();
45
llvm::Pass *createPolyhedralInfoPass();
46
llvm::Pass *createScopDetectionWrapperPassPass();
47
llvm::Pass *createScopInfoRegionPassPass();
48
llvm::Pass *createScopInfoWrapperPassPass();
49
llvm::Pass *createRewriteByrefParamsPass();
50
llvm::Pass *createIslAstInfoWrapperPassPass();
51
llvm::Pass *createCodeGenerationPass();
52
#ifdef GPU_CODEGEN
53
llvm::Pass *createPPCGCodeGenerationPass(GPUArch Arch = GPUArch::NVPTX64,
54
                                         GPURuntime Runtime = GPURuntime::CUDA);
55
56
llvm::Pass *
57
createManagedMemoryRewritePassPass(GPUArch Arch = GPUArch::NVPTX64,
58
                                   GPURuntime Runtime = GPURuntime::CUDA);
59
#endif
60
llvm::Pass *createIslScheduleOptimizerPass();
61
llvm::Pass *createFlattenSchedulePass();
62
llvm::Pass *createDeLICMPass();
63
llvm::Pass *createMaximalStaticExpansionPass();
64
65
extern char &CodePreparationID;
66
} // namespace polly
67
68
namespace {
69
struct PollyForcePassLinking {
70
1.10M
  PollyForcePassLinking() {
71
1.10M
    // We must reference the passes in such a way that compilers will not
72
1.10M
    // delete it all as dead code, even with whole program optimization,
73
1.10M
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
1.10M
    // to know that getenv() never returns -1, this will do the job.
75
1.10M
    if (std::getenv("bar") != (char *)-1)
76
1.10M
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
DependenceInfo.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
PolyhedralInfo.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
ScopDetection.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
ScopInfo.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
ScopGraphPrinter.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
IslAst.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
CodeGeneration.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
JSONExporter.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
RegisterPasses.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
Canonicalization.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
CodePreparation.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
DeadCodeElimination.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
ScheduleOptimizer.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
MaximalStaticExpansion.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
RewriteByReferenceParameters.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
ScopInliner.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
70
68.8k
  PollyForcePassLinking() {
71
68.8k
    // We must reference the passes in such a way that compilers will not
72
68.8k
    // delete it all as dead code, even with whole program optimization,
73
68.8k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
74
68.8k
    // to know that getenv() never returns -1, this will do the job.
75
68.8k
    if (std::getenv("bar") != (char *)-1)
76
68.8k
      return;
77
0
78
0
    polly::createCodePreparationPass();
79
0
    polly::createDeadCodeElimPass();
80
0
    polly::createDependenceInfoPass();
81
0
    polly::createDOTOnlyPrinterPass();
82
0
    polly::createDOTOnlyViewerPass();
83
0
    polly::createDOTPrinterPass();
84
0
    polly::createDOTViewerPass();
85
0
    polly::createJSONExporterPass();
86
0
    polly::createJSONImporterPass();
87
0
    polly::createScopDetectionWrapperPassPass();
88
0
    polly::createScopInfoRegionPassPass();
89
0
    polly::createPollyCanonicalizePass();
90
0
    polly::createPolyhedralInfoPass();
91
0
    polly::createIslAstInfoWrapperPassPass();
92
0
    polly::createCodeGenerationPass();
93
#ifdef GPU_CODEGEN
94
    polly::createPPCGCodeGenerationPass();
95
    polly::createManagedMemoryRewritePassPass();
96
#endif
97
    polly::createIslScheduleOptimizerPass();
98
0
    polly::createMaximalStaticExpansionPass();
99
0
    polly::createFlattenSchedulePass();
100
0
    polly::createDeLICMPass();
101
0
    polly::createDumpModulePass("", true);
102
0
    polly::createSimplifyPass();
103
0
    polly::createPruneUnprofitablePass();
104
0
  }
105
} PollyForcePassLinking; // Force link by creating a global definition.
106
} // namespace
107
108
namespace llvm {
109
class PassRegistry;
110
void initializeCodePreparationPass(llvm::PassRegistry &);
111
void initializeScopInlinerPass(llvm::PassRegistry &);
112
void initializeDeadCodeElimPass(llvm::PassRegistry &);
113
void initializeJSONExporterPass(llvm::PassRegistry &);
114
void initializeJSONImporterPass(llvm::PassRegistry &);
115
void initializeIslAstInfoWrapperPassPass(llvm::PassRegistry &);
116
void initializeCodeGenerationPass(llvm::PassRegistry &);
117
void initializeRewriteByrefParamsPass(llvm::PassRegistry &);
118
#ifdef GPU_CODEGEN
119
void initializePPCGCodeGenerationPass(llvm::PassRegistry &);
120
void initializeManagedMemoryRewritePassPass(llvm::PassRegistry &);
121
#endif
122
void initializeIslScheduleOptimizerPass(llvm::PassRegistry &);
123
void initializeMaximalStaticExpanderPass(llvm::PassRegistry &);
124
void initializePollyCanonicalizePass(llvm::PassRegistry &);
125
void initializeFlattenSchedulePass(llvm::PassRegistry &);
126
void initializeDeLICMPass(llvm::PassRegistry &);
127
} // namespace llvm
128
129
#endif