File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
test/CodeGenHLSL/builtins Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19449,7 +19449,8 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: {
1944919449 case Builtin::BI__builtin_hlsl_group_memory_barrier_with_group_sync: {
1945019450 Intrinsic::ID ID =
1945119451 CGM.getHLSLRuntime().getGroupMemoryBarrierWithGroupSyncIntrinsic();
19452- return EmitRuntimeCall(Intrinsic::getDeclaration(&CGM.getModule(), ID));
19452+ return EmitRuntimeCall(
19453+ Intrinsic::getOrInsertDeclaration(&CGM.getModule(), ID));
1945319454 }
1945419455 }
1945519456 return nullptr;
Original file line number Diff line number Diff line change 1010// CHECK-DXIL: define void @
1111// CHECK-SPIRV: define spir_func void @
1212void test_GroupMemoryBarrierWithGroupSync () {
13- // CHECK: call void @llvm.[[TARGET]].group.memory.barrier.with.group.sync()
13+ // CHECK-DXIL: call void @llvm.[[TARGET]].group.memory.barrier.with.group.sync()
14+ // CHECK-SPIRV: call spir_func void @llvm.[[TARGET]].group.memory.barrier.with.group.sync()
1415 GroupMemoryBarrierWithGroupSync ();
1516}
1617
You can’t perform that action at this time.
0 commit comments