[Polly][Isl] Replacing isl method `to_str()` with `stringFromIslObj()`. NFC.
authorpatacca <patacca@autistici.org>
Tue, 15 Jun 2021 12:21:40 +0000 (14:21 +0200)
committerpatacca <patacca@autistici.org>
Tue, 15 Jun 2021 12:22:10 +0000 (14:22 +0200)
commitcfe117def7b0714e5d724c80839e68f40fba4f47
tree847ea18e7a28961a8ab4dbed944adc60cf93def9
parentccda8c71b2ce6b1f005f8f2434e0e7bc5028e169
[Polly][Isl] Replacing isl method `to_str()` with `stringFromIslObj()`. NFC.

This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface.

Changes made:
 - Removing method `to_str()` from all the classes in the isl C++ bindings.
 - Overload method `stringFromIslObj()` so it accepts isl C++ objects.
 - To keep backward compatibility `stringFromIslObj()` now accepts a value that is returned if the isl C object is `null` or doesn't have a string representation (by default it's an empty string). In some cases it's better to have the string "null" instead of an empty string.
 - isl-noexceptions.h has been generated by this https://github.com/patacca/isl/commit/d33ec3a3bbaf971b254a853e6d8200ff9f5a1385

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D104211
polly/include/polly/Support/GICHelper.h
polly/include/polly/Support/ISLOStream.h
polly/lib/Analysis/PolyhedralInfo.cpp
polly/lib/Analysis/ScopBuilder.cpp
polly/lib/Analysis/ScopInfo.cpp
polly/lib/CodeGen/IslAst.cpp
polly/lib/External/isl/include/isl/isl-noexceptions.h
polly/lib/Support/GICHelper.cpp
polly/lib/Support/ISLTools.cpp