Coverage Report

Created: 2017-04-27 19:33

/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/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 *createDeadCodeElimPass();
35
llvm::Pass *createDependenceInfoPass();
36
llvm::Pass *createDependenceInfoWrapperPassPass();
37
llvm::Pass *createDOTOnlyPrinterPass();
38
llvm::Pass *createDOTOnlyViewerPass();
39
llvm::Pass *createDOTPrinterPass();
40
llvm::Pass *createDOTViewerPass();
41
llvm::Pass *createJSONExporterPass();
42
llvm::Pass *createJSONImporterPass();
43
llvm::Pass *createPollyCanonicalizePass();
44
llvm::Pass *createPolyhedralInfoPass();
45
llvm::Pass *createScopDetectionPass();
46
llvm::Pass *createScopInfoRegionPassPass();
47
llvm::Pass *createScopInfoWrapperPassPass();
48
llvm::Pass *createIslAstInfoPass();
49
llvm::Pass *createCodeGenerationPass();
50
#ifdef GPU_CODEGEN
51
llvm::Pass *createPPCGCodeGenerationPass();
52
#endif
53
llvm::Pass *createIslScheduleOptimizerPass();
54
llvm::Pass *createFlattenSchedulePass();
55
llvm::Pass *createDeLICMPass();
56
57
extern char &CodePreparationID;
58
} // namespace polly
59
60
namespace {
61
struct PollyForcePassLinking {
62
933k
  PollyForcePassLinking() {
63
933k
    // We must reference the passes in such a way that compilers will not
64
933k
    // delete it all as dead code, even with whole program optimization,
65
933k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
933k
    // to know that getenv() never returns -1, this will do the job.
67
933k
    if (std::getenv("bar") != (char *)-1)
68
933k
      return;
69
933k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
DependenceInfo.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
PolyhedralInfo.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
ScopDetection.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
ScopInfo.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
ScopGraphPrinter.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
IslAst.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
IslNodeBuilder.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
CodeGeneration.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
JSONExporter.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
RegisterPasses.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
Canonicalization.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
CodePreparation.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
DeadCodeElimination.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
ScheduleOptimizer.cpp:(anonymous namespace)::PollyForcePassLinking::PollyForcePassLinking()
Line
Count
Source
62
66.6k
  PollyForcePassLinking() {
63
66.6k
    // We must reference the passes in such a way that compilers will not
64
66.6k
    // delete it all as dead code, even with whole program optimization,
65
66.6k
    // yet is effectively a NO-OP. As the compiler isn't smart enough
66
66.6k
    // to know that getenv() never returns -1, this will do the job.
67
66.6k
    if (std::getenv("bar") != (char *)-1)
68
66.6k
      return;
69
66.6k
70
0
    polly::createCodePreparationPass();
71
0
    polly::createDeadCodeElimPass();
72
0
    polly::createDependenceInfoPass();
73
0
    polly::createDOTOnlyPrinterPass();
74
0
    polly::createDOTOnlyViewerPass();
75
0
    polly::createDOTPrinterPass();
76
0
    polly::createDOTViewerPass();
77
0
    polly::createJSONExporterPass();
78
0
    polly::createJSONImporterPass();
79
0
    polly::createScopDetectionPass();
80
0
    polly::createScopInfoRegionPassPass();
81
0
    polly::createPollyCanonicalizePass();
82
0
    polly::createPolyhedralInfoPass();
83
0
    polly::createIslAstInfoPass();
84
0
    polly::createCodeGenerationPass();
85
0
#ifdef GPU_CODEGEN
86
    polly::createPPCGCodeGenerationPass();
87
#endif
88
0
    polly::createIslScheduleOptimizerPass();
89
0
    polly::createFlattenSchedulePass();
90
0
    polly::createDeLICMPass();
91
0
    polly::createDumpModulePass("", true);
92
0
    polly::createSimplifyPass();
93
0
    polly::createPruneUnprofitablePass();
94
0
  }
95
} PollyForcePassLinking; // Force link by creating a global definition.
96
} // namespace
97
98
namespace llvm {
99
class PassRegistry;
100
void initializeCodePreparationPass(llvm::PassRegistry &);
101
void initializeDeadCodeElimPass(llvm::PassRegistry &);
102
void initializeJSONExporterPass(llvm::PassRegistry &);
103
void initializeJSONImporterPass(llvm::PassRegistry &);
104
void initializeIslAstInfoPass(llvm::PassRegistry &);
105
void initializeCodeGenerationPass(llvm::PassRegistry &);
106
#ifdef GPU_CODEGEN
107
void initializePPCGCodeGenerationPass(llvm::PassRegistry &);
108
#endif
109
void initializeIslScheduleOptimizerPass(llvm::PassRegistry &);
110
void initializePollyCanonicalizePass(llvm::PassRegistry &);
111
void initializeFlattenSchedulePass(llvm::PassRegistry &);
112
void initializeDeLICMPass(llvm::PassRegistry &);
113
} // namespace llvm
114
115
#endif