Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,10 @@ void InstrLowerer::emitNameData() {
NamesVar = new GlobalVariable(M, NamesVal->getType(), true,
GlobalValue::PrivateLinkage, NamesVal,
getInstrProfNamesVarName());
if (isGPUProfTarget(M)) {
NamesVar->setLinkage(GlobalValue::ExternalLinkage);
NamesVar->setVisibility(GlobalValue::ProtectedVisibility);
}

NamesSize = CompressedNameStr.size();
setGlobalVariableLargeSection(TT, *NamesVar);
Expand Down
1 change: 0 additions & 1 deletion offload/test/offloading/gpupgo/pgo_atomic_teams.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

// REQUIRES: amdgpu
// REQUIRES: pgo
// XFAIL: amdgpu

int test1(int a) { return a / 2; }
int test2(int a) { return a * 2; }
Expand Down
1 change: 0 additions & 1 deletion offload/test/offloading/gpupgo/pgo_atomic_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

// REQUIRES: amdgpu
// REQUIRES: pgo
// XFAIL: amdgpu

int test1(int a) { return a / 2; }

Expand Down
1 change: 0 additions & 1 deletion offload/test/offloading/gpupgo/pgo_device_and_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@

// REQUIRES: amdgpu
// REQUIRES: pgo
// XFAIL: amdgpu

int main() {
int host_var = 0;
Expand Down
1 change: 0 additions & 1 deletion offload/test/offloading/gpupgo/pgo_device_only.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

// REQUIRES: amdgpu
// REQUIRES: pgo
// XFAIL: amdgpu

int test1(int a) { return a / 2; }
int test2(int a) { return a * 2; }
Expand Down