Coverage Report

Created: 2017-06-28 17:40

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