commit | 549bc55cc39bb9fb22df464bcf3b7d4d4a5ff507 | [log] [tgz] |
---|---|---|
author | Davide Grohmann <davide.grohmann@arm.com> | Tue Jun 17 16:35:14 2025 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 17 10:35:14 2025 -0400 |
tree | 1b7b0a6bb77d69cec197e6ad038eaa037207a8f4 | |
parent | 4cfe0d7f4c2c39dd90e27258aa448789f2ba4278 [diff] |
[mlir][spirv] Fix int type declaration duplication when serializing (#143108) At the MLIR level unsigned integer and signless integers are different types. Indeed when looking up the two types in type definition cache they do not match. Hence when translating a SPIR-V module which contains both usign and signless integers will contain the same type declaration twice (something like OpTypeInt 32 0) which is not permitted in SPIR-V and such generated modules fail validation. This patch solves the problem by mapping unisgned integer types to singless integer types before looking up in the type definition cache. --------- Signed-off-by: Davide Grohmann <davide.grohmann@arm.com>
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.