commit | 0f7906645d18a38a6b80a1e8e1d425396f6ab353 | [log] [tgz] |
---|---|---|
author | Felix Schneider <fx.schn@gmail.com> | Mon May 13 19:27:38 2024 +0200 |
committer | GitHub <noreply@github.com> | Mon May 13 19:27:38 2024 +0200 |
tree | 23ef4bb4a6afe9c3f55a1b74963f94685b6e857e | |
parent | cf40c93b5be5cd0011ebbf3a9eead224f7b7079a [diff] |
[mlir][intrange] Fix `arith.shl` inference in case of overflow (#91737) When an overflow happens during shift left, i.e. the last sign bit or the most significant data bit gets shifted out, the current approach of inferring the range of results does not work anymore. This patch checks for possible overflow and returns the max range in that case. Fix https://github.com/llvm/llvm-project/issues/82158
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.