diff options
author | Sander de Smalen <sander.desmalen@arm.com> | 2023-11-27 14:04:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 14:04:52 +0000 |
commit | adb130ccad67a18eb15506822e9cfcb1cb00cb45 (patch) | |
tree | 454b9aeccfbfdaa05ee9cee7e9b7b1be41233175 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5bd643e1456bd2acc53ac0bf594d285be89a44fe (diff) | |
download | llvm-adb130ccad67a18eb15506822e9cfcb1cb00cb45.zip llvm-adb130ccad67a18eb15506822e9cfcb1cb00cb45.tar.gz llvm-adb130ccad67a18eb15506822e9cfcb1cb00cb45.tar.bz2 |
[llvm][TypeSize] Consider TypeSize of '0' to be fixed/scalable-agnostic. (#72994)
This patch allows adding any quantity to a zero-initialized TypeSize,
such
that e.g.:
TypeSize::Scalable(0) + TypeSize::Fixed(4) == TypeSize::Fixed(4)
TypeSize::Fixed(0) + TypeSize::Scalable(4) == TypeSize::Scalable(4)
This makes it easier to implement add-reductions using TypeSize where
the 'scalable' flag is not yet known before starting the reduction.
(this PR follows on from #72979)
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions