[llvm] [SPIRV] Change how to detect OpenCL/Vulkan Env and update tests accordingly. (PR #129689)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 05:54:25 PDT 2025


================
@@ -3740,7 +3741,7 @@ bool SPIRVInstructionSelector::selectFrameIndex(Register ResVReg,
                  .addUse(GR.getSPIRVTypeID(ResType))
                  .addImm(static_cast<uint32_t>(SPIRV::StorageClass::Function))
                  .constrainAllUses(TII, TRI, RBI);
-  if (!STI.isVulkanEnv()) {
+  if (!STI.isShaderEnv()) {
----------------
Keenuts wrote:

```suggestion
  if (!STI.isKernelEnv()) {
```

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


More information about the llvm-commits mailing list