Skip to content

Commit c342e0a

Browse files
committed
isSPIR -> isSPIROrSPIRV
1 parent 033a1f6 commit c342e0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/SYCLLowerIR/LowerWGScope.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ Instruction *spirv::genWGBarrier(Instruction &Before, const Triple &TT) {
10011001
FunctionCallee FC =
10021002
M.getOrInsertFunction(Name, Attr, RetTy, ScopeTy, ScopeTy, SemanticsTy);
10031003
assert(FC.getCallee() && "spirv intrinsic creation failed");
1004-
if (TT.isSPIR())
1004+
if (TT.isSPIROrSPIRV())
10051005
cast<Function>(FC.getCallee())->setCallingConv(CallingConv::SPIR_FUNC);
10061006

10071007
IRBuilder<> Bld(Ctx);
@@ -1013,7 +1013,7 @@ Instruction *spirv::genWGBarrier(Instruction &Before, const Triple &TT) {
10131013
asUInt(spirv::MemorySemantics::WorkgroupMemory));
10141014
auto BarrierCall = Bld.CreateCall(FC, {ArgExec, ArgMem, ArgSema});
10151015
BarrierCall->addFnAttr(llvm::Attribute::Convergent);
1016-
if (TT.isSPIR())
1016+
if (TT.isSPIROrSPIRV())
10171017
BarrierCall->setCallingConv(CallingConv::SPIR_FUNC);
10181018
return BarrierCall;
10191019
}

0 commit comments

Comments
 (0)