[llvm] [SPIRV] Add support for SPV_KHR_abort extension (PR #193037)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 05:12:20 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))
----------------
jmmartinez wrote:
I don't think you should be doing this check in here. It is done already in `llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp`. But I get that we're inconsistent with this on this file.
https://github.com/llvm/llvm-project/pull/193037
More information about the llvm-commits
mailing list