[PATCH] D157696: [SPIRV] Implement support for SPV_KHR_expect_assume

Paulo Matos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 03:02:39 PDT 2023


pmatos created this revision.
pmatos added reviewers: mpaszkowski, zuban32, iliya-diyachkov.
Herald added subscribers: asb, wingo, ThomasRaoux, hiraditya.
Herald added a project: All.
pmatos requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adds new extension SPV_KHR_expect_assume, new capability
ExpectAssumeKHR as well as the new instructions:

- OpExpectKHR
- OpAssumeTrueKHR

These are lowered from respectively llvm.expect.<ty> and llvm.assume
intrinsics.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157696

Files:
  llvm/include/llvm/IR/IntrinsicsSPIRV.td
  llvm/lib/Target/SPIRV/SPIRVBuiltins.td
  llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
  llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
  llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
  llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
  llvm/lib/Target/SPIRV/SPIRVSubtarget.cpp
  llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
  llvm/test/CodeGen/SPIRV/assume.ll
  llvm/test/CodeGen/SPIRV/expect.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157696.549317.patch
Type: text/x-patch
Size: 9584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230811/16a30792/attachment.bin>


More information about the llvm-commits mailing list