Coverage Report

Created: 2017-10-03 07:32

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