aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2021-10-06 09:49:51 +0100
committerJay Foad <jay.foad@amd.com>2022-05-14 09:54:24 +0100
commit169ae6db69882605a69e184237640f0c557243ee (patch)
tree90405959572d3e8d747182b5790ef3ce15bd897d /flang/lib/Frontend/CompilerInvocation.cpp
parent1ecc3d86ae3eeb43336c27c4d653e06236b918a2 (diff)
downloadllvm-169ae6db69882605a69e184237640f0c557243ee.zip
llvm-169ae6db69882605a69e184237640f0c557243ee.tar.gz
llvm-169ae6db69882605a69e184237640f0c557243ee.tar.bz2
[APInt] Allow extending and truncating to the same width
Allow zext, sext, trunc, truncUSat and truncSSat to extend or truncate to the same bit width, which is a no-op. Disallowing this forced clients to use workarounds like using zextOrTrunc (even though they never wanted truncation) or zextOrSelf (even though they did not want its strange behaviour of allowing a *smaller* bit width, which is also treated as a no-op). Differential Revision: https://reviews.llvm.org/D125556
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions