[llvm] [SPIRV] Add support for SPV_KHR_abort extension (PR #193037)

Victor Mustya via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 08:37:04 PDT 2026


================
@@ -6250,6 +6253,63 @@ bool SPIRVInstructionSelector::selectAllocaArray(Register ResVReg,
   return true;
 }
 
+bool SPIRVInstructionSelector::selectAbort(MachineInstr &I) const {
+  if (!STI.canUseExtension(SPIRV::Extension::SPV_KHR_abort))
----------------
vmustya wrote:

There are similar checks already implemented for the `selectStackSave` and `selectStackRestore` functions, so I'd keep the check here. I've rewritten it from the fatal error to the `diagnoseUnsupported`.

https://github.com/llvm/llvm-project/pull/193037


More information about the llvm-commits mailing list