Skip to content

Conversation

@fschlimb
Copy link
Contributor

Probably an accident in #143108 (@davidegrohmann): The introduced lit.local.cfg basically muted all mlir lit tests.
renamed: mlir/test/lit.local.cfg -> mlir/test/Target/SPIRV/lit.local.cfg

@llvmbot
Copy link
Member

llvmbot commented Jun 18, 2025

@llvm/pr-subscribers-mlir-spirv

@llvm/pr-subscribers-mlir

Author: Frank Schlimbach (fschlimb)

Changes

Probably an accident in #143108 (@davidegrohmann): The introduced lit.local.cfg basically muted all mlir lit tests.
renamed: mlir/test/lit.local.cfg -> mlir/test/Target/SPIRV/lit.local.cfg


Full diff: https://github.com/llvm/llvm-project/pull/144685.diff

1 Files Affected:

  • (renamed) mlir/test/Target/SPIRV/lit.local.cfg ()
diff --git a/mlir/test/lit.local.cfg b/mlir/test/Target/SPIRV/lit.local.cfg
similarity index 100%
rename from mlir/test/lit.local.cfg
rename to mlir/test/Target/SPIRV/lit.local.cfg

Copy link
Member

@rengolin rengolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! LGTM.

@fschlimb fschlimb merged commit 8584abb into llvm:main Jun 18, 2025
10 checks passed
kuhar added a commit that referenced this pull request Jun 18, 2025
…lizing" and follow up commits (#144773)

This reverts the following PRs:
* #143108
* #144538
* #144685

Reverting because this disabled tests when building without the llvm
spirv backend enabled.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Jun 18, 2025
… when serializing" and follow up commits (#144773)

This reverts the following PRs:
* llvm/llvm-project#143108
* llvm/llvm-project#144538
* llvm/llvm-project#144685

Reverting because this disabled tests when building without the llvm
spirv backend enabled.
kuhar pushed a commit that referenced this pull request Jul 28, 2025
…lizing" (#145687)

This relands PRs #143108 and #144538.

The original PR was reverted due to a mistake that made all the mlir
tests run only if SPIRV target was enabled. This is now resolved since
enabling spirv-tools does not required SPIRV target any longer.

spirv-tools are not required by default to run SPIRV mlir tests, but
they can be optionally enabled in some SPIRV mlir test to verify that
the produced SPIRV assembly pass validation.

The other reverted PR #144685 is not longer needed and not part of this
relanding.

Original commit message:

> 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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants