[Polly][Ast] Partial refactoring of IslAst and IslAstInfo to use isl++. NFC.
authorpatacca <patacca@autistici.org>
Fri, 16 Apr 2021 04:34:57 +0000 (23:34 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Fri, 16 Apr 2021 05:40:26 +0000 (00:40 -0500)
commit4170d6cdd51f9c03110ca0fa8bcf4551fb95d569
treee3aeba948c322913e955140d96a546596e040dfa
parent7029cffc4e78556cfe820791c612968bb15b2ffb
[Polly][Ast] Partial refactoring of IslAst and IslAstInfo to use isl++. NFC.

Polly use algorithms from the Integer Set Library (isl), which is a library written in C and which is incompatible with the rest of the LLVM as it is written in C++.

Changes made:
 - Refactoring the following methods of class `IslAst`
  - `getAst()` `getRunCondition()` `buildRunCondition()`
  - Removed the destructor in favor of the default one
 - Change the type of the attribute `IslAst.RunCondition` to `isl::ast_expr`
 - Change the type of the attribute `IslAst.Root` to `isl::ast_node`
 - Change the order of attributes in class `IslAst` to reflect the data dependencies so that the destructor won't complain
 - Refactoring the following methods of class `IslAstInfo`
  - `getAst()` `getRunCondition()`

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D100265
polly/include/polly/CodeGen/IslAst.h
polly/lib/CodeGen/CodeGeneration.cpp
polly/lib/CodeGen/IslAst.cpp
polly/lib/CodeGen/PPCGCodeGeneration.cpp