We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe7cb15 commit b16900fCopy full SHA for b16900f
llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
@@ -2475,8 +2475,10 @@ void SPIRVEmitIntrinsics::parseFunDeclarations(Module &M) {
2475
if (DemangledName.empty())
2476
continue;
2477
// allow only OpGroupAsyncCopy use case at the moment
2478
- auto [Grp, Opcode, ExtNo] =
2479
- SPIRV::mapBuiltinToOpcode(DemangledName, InstrSet);
+ auto [Grp, Opcode, ExtNo] = SPIRV::mapBuiltinToOpcode(
+ DemangledName, TM->getSubtarget<SPIRVSubtarget>(F).isOpenCLEnv()
2480
+ ? SPIRV::InstructionSet::OpenCL_std
2481
+ : SPIRV::InstructionSet::GLSL_std_450);
2482
if (Opcode != SPIRV::OpGroupAsyncCopy)
2483
2484
// find pointer arguments
0 commit comments