| commit | ad87d951c94f045389b2e424c2d2a1505c593b85 | [log] [tgz] |
|---|---|---|
| author | Mariya Podchishchaeva <mariya.podchishchaeva@intel.com> | Wed Jun 25 10:57:48 2025 +0200 |
| committer | GitHub <noreply@github.com> | Wed Jun 25 10:57:48 2025 +0200 |
| tree | 8826ba8f0adb98f1190fbf6b113f8ae22e9dcf53 | |
| parent | ecff028a96626357d17d4e4fdce824a7da89ec1c [diff] |
[clang] Fix __builtin_mul_overflow for big _BitInts (#145497) For long enough _BitInt types we use different types for memory, storing-loading and other operations. Makes sure it is correct for mixed sign __builtin_mul_overflow cases. Using pointer element type as a result type doesn't work, because it will be "in-memory" type which is usually bigger than "operations" type and that caused crashes because clang was trying to emit trunc to a bigger type. Fixes https://github.com/llvm/llvm-project/issues/144771
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.