aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-10-14 15:01:05 +0200
committerGitHub <noreply@github.com>2024-10-14 15:01:05 +0200
commite692af85966903614d470a7742ed89d124baf1a6 (patch)
tree9a0e90b41b84cb3c5b6aeb81c94cc8174c5538e0 /flang/lib/Frontend/CompilerInvocation.cpp
parent8b20f1b92444a95c16e0a21161515dbf5b03f424 (diff)
downloadllvm-e692af85966903614d470a7742ed89d124baf1a6.zip
llvm-e692af85966903614d470a7742ed89d124baf1a6.tar.gz
llvm-e692af85966903614d470a7742ed89d124baf1a6.tar.bz2
[MLIR] Update APInt construction to correctly set isSigned/implicitTrunc (#110466)
This fixes all the places in MLIR that hit the new assertion added in #106524, in preparation for enabling it by default. That is, cases where the value passed to the APInt constructor is not an N-bit signed/unsigned integer, where N is the bit width and signedness is determined by the isSigned flag. The fixes either set the correct value for isSigned, or set the implicitTrunc flag to retain the old behavior. I've left TODOs for the latter case in some places, where I think that it may be worthwhile to stop doing implicit truncation in the future. Note that the assertion is currently still disabled by default, so this patch is mostly NFC. This is just the MLIR changes split off from https://github.com/llvm/llvm-project/pull/80309.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions