[all-commits] [llvm/llvm-project] 698c80: [SPIRV] support builtin types and ExtInsts selection

Ilia Diachkov via All-commits all-commits at lists.llvm.org
Thu Sep 1 06:01:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 698c800142d84d32471f36c7e0d33e68db07e06f
      https://github.com/llvm/llvm-project/commit/698c800142d84d32471f36c7e0d33e68db07e06f
  Author: Ilia Diachkov <ilia.diachkov at gmail.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsSPIRV.td
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.h
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.td
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVLegalizerInfo.cpp
    M llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
    A llvm/test/CodeGen/SPIRV/instructions/intrinsics.ll
    A llvm/test/CodeGen/SPIRV/instructions/unreachable.ll
    A llvm/test/CodeGen/SPIRV/llvm-intrinsics/fp-intrinsics.ll
    A llvm/test/CodeGen/SPIRV/llvm-intrinsics/maxnum.ll
    A llvm/test/CodeGen/SPIRV/opencl/image.ll

  Log Message:
  -----------
  [SPIRV] support builtin types and ExtInsts selection

The patch adds the support of OpenCL and SPIR-V built-in types. It also
implements ExtInst selection and adds spv_unreachable and spv_alloca
intrinsics which improve the generation of the corresponding SPIR-V code.
Five LIT tests are included to demonstrate the improvement.

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

Co-authored-by: Aleksandr Bezzubikov <zuban32s at gmail.com>
Co-authored-by: Michal Paszkowski <michal.paszkowski at outlook.com>
Co-authored-by: Andrey Tretyakov <andrey1.tretyakov at intel.com>
Co-authored-by: Konrad Trifunovic <konrad.trifunovic at intel.com>




More information about the All-commits mailing list