llvm-project/polly/lib/Analysis
Riccardo Mori 44596fe6a9 [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI
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.
In the official interface the type `isl::size` cannot be casted to an unsigned without previously having checked if it contains a valid value with the function `isl::size::is_error()`.
For this reason two helping functions have been added:
 - `IslAssert`: assert that no errors are present in debug builds and just disables the mandatory error check in non-debug builds
 - `unisgnedFromIslSIze`: cast the `isl::size` object to `unsigned`

Changes made:
 - Add the functions `IslAssert` and `unsignedFromIslSize`
 - Add the utility function `rangeIslSize()`
 - Retype `MaxDisjunctsInDomain` from `int` to `unsigned`
 - Retype `RunTimeChecksMaxAccessDisjuncts` from `int` to `unsigned`
 - Retype `MaxDimensionsInAccessRange` from `int` to `unsigned`
 - Replaced some usages of `isl_size` to `unsigned` since we aim not to use `isl_size` anymore
 - `isl-noexceptions.h` has been generated by e704f73c88

No functional change intended.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D113101
2021-11-05 11:15:22 +01:00
..
DependenceInfo.cpp [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
PolyhedralInfo.cpp [Polly][Isl] Replacing isl method `to_str()` with `stringFromIslObj()`. NFC. 2021-06-15 14:22:10 +02:00
PruneUnprofitable.cpp [Polly] Port PruneUnprofitable to the NewPM. 2021-02-09 23:56:20 -06:00
ScopBuilder.cpp [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
ScopDetection.cpp Update polly for removal of CallInst::arg_operands/getNumArgOperands 2021-10-08 10:46:05 -07:00
ScopDetectionDiagnostic.cpp [Polly] Reject regions entered by an indirectbr/callbr. 2021-09-27 18:49:11 -05:00
ScopGraphPrinter.cpp [Polly] Introduce caching for the isErrorBlock function. NFC. 2021-08-18 14:05:50 -05:00
ScopInfo.cpp [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
ScopPass.cpp Make dependency between certain analysis passes transitive (reapply) 2021-05-05 15:17:55 +02:00