Update isl to isl-0.20-48-g13eba5b5
[polly-mirror.git] / lib / Polly.cpp
blob95903abdf248d147976103bf4f4e6ca7ab106457
1 //===---------- Polly.cpp - Initialize the Polly Module -------------------===//
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 //===----------------------------------------------------------------------===//
12 #include "polly/RegisterPasses.h"
13 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
15 namespace {
17 /// Initialize Polly passes when library is loaded.
18 ///
19 /// We use the constructor of a statically declared object to initialize the
20 /// different Polly passes right after the Polly library is loaded. This ensures
21 /// that the Polly passes are available e.g. in the 'opt' tool.
22 class StaticInitializer {
23 public:
24 StaticInitializer() {
25 llvm::PassRegistry &Registry = *llvm::PassRegistry::getPassRegistry();
26 polly::initializePollyPasses(Registry);
29 static StaticInitializer InitializeEverything;
30 } // end of anonymous namespace.