[PATCH] D137018: [SPIRV] support enqueue_kernel builtin functions

Ilia Diachkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 29 05:13:49 PDT 2022


iliya-diyachkov created this revision.
iliya-diyachkov added reviewers: zuban32, rengolin, MaskRay, arsenm, konrad.trifunovic, mpaszkowski, andreytr.
Herald added subscribers: StephenFan, ThomasRaoux, hiraditya.
Herald added a project: All.
iliya-diyachkov requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

The patch adds support of the enqueue_kernel builtin function. It is implemented in the same way as in the SPIRV translator.

2 LIT tests are added to show the improvement.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137018

Files:
  llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
  llvm/lib/Target/SPIRV/SPIRVBuiltins.td
  llvm/lib/Target/SPIRV/SPIRVDuplicatesTracker.h
  llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
  llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
  llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
  llvm/lib/Target/SPIRV/SPIRVUtils.cpp
  llvm/lib/Target/SPIRV/SPIRVUtils.h
  llvm/test/CodeGen/SPIRV/EnqueueEmptyKernel.ll
  llvm/test/CodeGen/SPIRV/transcoding/enqueue_kernel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137018.471747.patch
Type: text/x-patch
Size: 50984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221029/cbd54d86/attachment-0001.bin>


More information about the llvm-commits mailing list