• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===--- Canonicalization.h - Set of canonicalization 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 #ifndef POLLY_CANONICALIZATION_H
10 #define POLLY_CANONICALIZATION_H
11 
12 namespace llvm {
13 namespace legacy {
14 class PassManagerBase;
15 }
16 } // namespace llvm
17 
18 namespace polly {
19 
20 /// Schedule a set of canonicalization passes to prepare for Polly.
21 ///
22 /// The set of optimization passes was partially taken/copied from the
23 /// set of default optimization passes in LLVM. It is used to bring the code
24 /// into a canonical form that simplifies the analysis and optimization passes
25 /// of Polly. The set of optimization passes scheduled here is probably not yet
26 /// optimal. TODO: Optimize the set of canonicalization passes.
27 void registerCanonicalicationPasses(llvm::legacy::PassManagerBase &PM);
28 } // namespace polly
29 
30 #endif
31