Skip to content

Commit eb7849f

Browse files
restrict changes to the single use case of OpGroupAsyncCopy
1 parent 9070904 commit eb7849f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2365,6 +2365,11 @@ void SPIRVEmitIntrinsics::parseFunDeclarations(Module &M) {
23652365
std::string DemangledName = getOclOrSpirvBuiltinDemangledName(F.getName());
23662366
if (DemangledName.empty())
23672367
continue;
2368+
// allow only OpGroupAsyncCopy use case at the moment
2369+
auto [Grp, Opcode, ExtNo] =
2370+
SPIRV::mapBuiltinToOpcode(DemangledName, InstrSet);
2371+
if (Opcode != SPIRV::OpGroupAsyncCopy)
2372+
continue;
23682373
// find pointer arguments
23692374
SmallVector<unsigned> Idxs;
23702375
for (unsigned OpIdx = 0; OpIdx < F.arg_size(); ++OpIdx) {

0 commit comments

Comments
 (0)