[all-commits] [llvm/llvm-project] b8435e: [SPIR-V] Emit spv_undef intrinsic for aggregate un...

Michal Paszkowski via All-commits all-commits at lists.llvm.org
Tue Feb 21 12:47:37 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8435e392cc82639c3c5e9adff078063ac76c27d
  Author: Michal Paszkowski <michal.paszkowski at outlook.com>
  Date:   2023-02-21 (Tue, 21 Feb 2023)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsSPIRV.td
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    A llvm/test/CodeGen/SPIRV/instructions/undef-nested-composite-store.ll
    A llvm/test/CodeGen/SPIRV/instructions/undef-simple-composite-store.ll

  Log Message:
  [SPIR-V] Emit spv_undef intrinsic for aggregate undef operands

This change adds a new spv_undef intrinsic which is emitted in place of
aggregate undef operands and later selected to single OpUndef SPIR-V
instruction. The behavior matches that of Khronos SPIR-V Translator and
should support nested aggregates.

Differential Revision: https://reviews.llvm.org/D143107

More information about the All-commits mailing list