diff options
author | Henrich Lauko <xlauko@mail.muni.cz> | 2025-05-02 09:15:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-02 09:15:56 +0200 |
commit | 3f367a65d31a7178e222a7babae7baa0a93ff292 (patch) | |
tree | 280bc9da9b64217b5a930e694b6e415efb851bcf /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 8b752b9874489229e4afceadd958fdc9ff7a2edb (diff) | |
download | llvm-3f367a65d31a7178e222a7babae7baa0a93ff292.zip llvm-3f367a65d31a7178e222a7babae7baa0a93ff292.tar.gz llvm-3f367a65d31a7178e222a7babae7baa0a93ff292.tar.bz2 |
[CIR] Refactor IntType constraints (#138106)
- Adds `CIR_` prefixes to integer type constraints types to disambiguate their names from other dialects.
- Renames `PrimitiveInt` to `CIR_AnyFundamentalIntType` to align more with constrian conventions.
- Adds bunch of helper constraint classes to be able to define base types to reduce clutter of necessary type casts.
- Reworks constraints to use `CIR_ConfinedType` to avoid repeating validation checks.
- Adds `IntOfWidths` variadic bitwidth constraint to reduce boilerplate code needed to handle multi-bitwidth parameters.
- Constraints are moved into a separate file, which starts decoupling of constraints and types to remove the cyclic dependency between types and attributes and will eventually help fix several outstanding TODOs.
This mirrors incubator changes from https://github.com/llvm/clangir/pull/1593
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions