[llvm] [SPIRV] Change how to detect OpenCL/Vulkan Env and update tests accordingly. (PR #129689)
Marcos Maronas via llvm-commits
llvm-commits at lists.llvm.org
Fri May 30 06:40:19 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") &&
----------------
maarquitos14 wrote:
Updated in https://github.com/llvm/llvm-project/pull/129689/commits/42df23dbcdde2ca42448aa665f17defdd71e0dd4.
https://github.com/llvm/llvm-project/pull/129689
More information about the llvm-commits
mailing list