1 //===--- Canonicalization.h - Set of canonicalization passes ----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef POLLY_CANONICALIZATION_H
11 #define POLLY_CANONICALIZATION_H
13 #include "llvm/IR/LegacyPassManager.h"
17 /// @brief Schedule a set of canonicalization passes to prepare for Polly
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
);