Post-commit fix of a comment
[polly-mirror.git] / include / polly / Canonicalization.h
blob1d0fc96b8dcfe1aa7135a93672aca70562c05d88
1 //===--- Canonicalization.h - Set of canonicalization 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 //===----------------------------------------------------------------------===//
10 #ifndef POLLY_CANONICALIZATION_H
11 #define POLLY_CANONICALIZATION_H
13 #include "llvm/IR/LegacyPassManager.h"
15 namespace polly {
17 /// Schedule a set of canonicalization passes to prepare for Polly.
18 ///
19 /// The set of optimization passes was partially taken/copied from the
20 /// set of default optimization passes in LLVM. It is used to bring the code
21 /// into a canonical form that simplifies the analysis and optimization passes
22 /// of Polly. The set of optimization passes scheduled here is probably not yet
23 /// optimal. TODO: Optimize the set of canonicalization passes.
24 void registerCanonicalicationPasses(llvm::legacy::PassManagerBase &PM);
25 } // namespace polly
27 #endif