[all-commits] [llvm/llvm-project] 435d8b: Reland [SPIR-V] Support `SPV_INTEL_int4` extension...

Viktoria Maximova via All-commits all-commits at lists.llvm.org
Mon May 26 05:15:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 435d8b12efc1447b3c9f95ace2c57dae22ea486d
      https://github.com/llvm/llvm-project/commit/435d8b12efc1447b3c9f95ace2c57dae22ea486d
  Author: Viktoria Maximova <viktoria.maksimova at intel.com>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M llvm/docs/SPIRVUsage.rst
    M llvm/lib/Target/SPIRV/SPIRVCommandLine.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp
    M llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp
    M llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
    A llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_int4/cooperative_matrix.ll
    A llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_int4/negative.ll
    A llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_int4/trivial.ll

  Log Message:
  -----------
  Reland [SPIR-V] Support `SPV_INTEL_int4` extension  (#141279)

This relands #141031 

This change ensures generated SPIR-V is valid and passes machine
verification:
```
*** Bad machine code: inconsistent constant size ***
- function:    foo
- basic block: %bb.1 entry (0x9ec9298)
- instruction: %12:iid(s8) = G_CONSTANT i4 1
```
That is done by promoting `G_CONSTANT` instructions with small integer
types (e.g., `i4`) to `i8` if no extensions for "special" integer types
are enabled.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list