llvm-project/polly/lib/CodeGen
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
..
BlockGenerators.cpp [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
CodeGeneration.cpp [Polly] Rename CodeGen -> generateCode. NFC. 2021-08-13 12:46:07 -05:00
CodegenCleanup.cpp [polly] Don't include PassSupport.h directly - include via Pass.h 2020-04-26 15:51:32 +01:00
IRBuilder.cpp [Polly] Don't generate inter-iteration noalias metadata. 2021-09-20 22:20:17 -05:00
IslAst.cpp [Polly][Isl] Move to the new-polly-generator branch version of isl-noexceptions.h. NFCI 2021-08-16 15:53:26 +02:00
IslExprBuilder.cpp [OpaquePtr] Remove uses of CreateGEP() without element type 2021-07-17 22:56:27 +02:00
IslNodeBuilder.cpp [Polly] Remove checkIslAstExprInt and use RAII instead of manually freeing Expr. NFC. 2021-10-15 09:17:00 -05:00
LoopGenerators.cpp [OpaquePtrs] Remove some uses of type-less CreateLoad APIs (NFC) 2021-03-11 14:40:57 +01:00
LoopGeneratorsGOMP.cpp [OpaquePtrs] Remove some uses of type-less CreateLoad APIs (NFC) 2021-03-11 14:40:57 +01:00
LoopGeneratorsKMP.cpp [OpaquePtrs] Remove some uses of type-less CreateLoad APIs (NFC) 2021-03-11 14:40:57 +01:00
ManagedMemoryRewrite.cpp [Polly] Fix deprecation warning. NFC. 2021-03-15 14:31:16 -05:00
PPCGCodeGeneration.cpp [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
PerfMonitor.cpp [OpaquePtrs] Remove some uses of type-less CreateLoad APIs (NFC) 2021-03-11 14:40:57 +01:00
RuntimeDebugBuilder.cpp [OpaquePtr] Remove uses of CreateGEP() without element type 2021-07-17 22:56:27 +02:00
Utils.cpp