File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
test/CodeGen/SPIRV/linkage Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1042,7 +1042,7 @@ getFirstValidInstructionInsertPoint(MachineBasicBlock &BB) {
10421042
10431043std::optional<SPIRV::LinkageType::LinkageType>
10441044getSpirvLinkageTypeFor (const SPIRVSubtarget &ST, const GlobalValue &GV) {
1045- if (GV.hasLocalLinkage () || GV. hasHiddenVisibility () )
1045+ if (GV.hasLocalLinkage ())
10461046 return std::nullopt ;
10471047
10481048 if (GV.isDeclarationForLinker ())
Original file line number Diff line number Diff line change 1- ; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - 2>&1 | FileCheck %s
2- ; CHECK: LLVM ERROR: Unknown function in:
3- ; CHECK-SAME: OpFunctionCall %{{[0-9]+}}:type, @bar
1+ ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
2+ ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %}
3+
4+ ; CHECK: OpName %[[BAR:[0-9]+]] "bar"
5+ ; CHECK: OpDecorate %[[BAR]] LinkageAttributes "bar" Import
6+ ; CHECK: %[[BAR]] = OpFunction
47
58define hidden spir_kernel void @foo () addrspace (4 ) {
69entry:
You can’t perform that action at this time.
0 commit comments