aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorDavide Grohmann <davide.grohmann@arm.com>2025-06-17 16:35:14 +0200
committerGitHub <noreply@github.com>2025-06-17 10:35:14 -0400
commit549bc55cc39bb9fb22df464bcf3b7d4d4a5ff507 (patch)
tree1b7b0a6bb77d69cec197e6ad038eaa037207a8f4 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent4cfe0d7f4c2c39dd90e27258aa448789f2ba4278 (diff)
downloadllvm-549bc55cc39bb9fb22df464bcf3b7d4d4a5ff507.zip
llvm-549bc55cc39bb9fb22df464bcf3b7d4d4a5ff507.tar.gz
llvm-549bc55cc39bb9fb22df464bcf3b7d4d4a5ff507.tar.bz2
[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>
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
0 files changed, 0 insertions, 0 deletions