llvm-project/polly/include/polly
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
..
CodeGen [Polly] Remove support for code generated by gfortran+DragonEgg. 2021-10-14 14:12:06 -05:00
Config
Support [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
Canonicalization.h Take OptimizationLevel class out of Pass Builder 2021-07-29 21:57:23 -07:00
CodePreparation.h
DeLICM.h [Polly] Port DeLICM to the NewPM. 2021-02-09 23:56:19 -06:00
DeadCodeElimination.h [Polly][DCE] clang-format DeadCodeElimination.h. NFC. 2021-03-24 09:33:14 -05:00
DependenceInfo.h [Polly] Implement user-directed loop distribution/fission. 2021-09-23 21:11:01 -05:00
FlattenAlgo.h
FlattenSchedule.h
ForwardOpTree.h [Polly] Avoid "using namespace llvm" in public headers. NFC. 2021-02-10 20:58:33 -06:00
JSONExporter.h
LinkAllPasses.h [Polly] Remove support for code generated by gfortran+DragonEgg. 2021-10-14 14:12:06 -05:00
ManualOptimizer.h [Polly] Implement user-directed loop distribution/fission. 2021-09-23 21:11:01 -05:00
MatmulOptimizer.h [Polly] Move MatMul optimization into its own file. NFC. 2021-06-04 23:22:30 -05:00
Options.h
PolyhedralInfo.h
PruneUnprofitable.h [Polly] Port PruneUnprofitable to the NewPM. 2021-02-09 23:56:20 -06:00
RegisterPasses.h Polly: Fix a tag type mismatch (struct/class) 2020-01-02 12:13:38 -08:00
ScheduleOptimizer.h [Polly] Move MatMul optimization into its own file. NFC. 2021-06-04 23:22:30 -05:00
ScheduleTreeTransform.h [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
ScopBuilder.h [Polly] Remove support for code generated by gfortran+DragonEgg. 2021-10-14 14:12:06 -05:00
ScopDetection.h [Polly] Introduce caching for the isErrorBlock function. NFC. 2021-08-18 14:05:50 -05:00
ScopDetectionDiagnostic.h [Polly] Reject regions entered by an indirectbr/callbr. 2021-09-27 18:49:11 -05:00
ScopInfo.h [Polly][Isl] Use the function unsignedFromIslSize to manage a isl::size object. NFCI 2021-11-05 11:15:22 +01:00
ScopPass.h [Polly] Fix PM invalidate usage after D100519 2021-04-15 18:41:20 -07:00
Simplify.h [Polly] Hide Simplify implementation from header. NFC. 2021-02-10 22:11:52 -06:00
ZoneAlgo.h