[llvm] [SPIRV] Change how to detect OpenCL/Vulkan Env and update tests accordingly. (PR #129689)
Alexey Bader via llvm-commits
llvm-commits at lists.llvm.org
Wed May 28 08:32:13 PDT 2025
================
@@ -532,7 +532,7 @@ void SPIRVAsmPrinter::outputExecutionMode(const Module &M) {
Inst.addOperand(MCOperand::createImm(TypeCode));
outputMCInst(Inst);
}
- if (ST->isOpenCLEnv() && !M.getNamedMetadata("spirv.ExecutionMode") &&
+ if (ST->isKernelEnv() && !M.getNamedMetadata("spirv.ExecutionMode") &&
----------------
bader wrote:
> Change how to detect OpenCL/Vulkan Env and update tests accordingly
Let me clarify the terminology.
SPIR-V specification defines OpenCL/Vulkan as environments and Kernel/Shader as capabilities.
What exactly are we detecting here: environments or capabilities?
https://github.com/llvm/llvm-project/pull/129689
More information about the llvm-commits
mailing list