Skip to content

Commit ceb63c3

Browse files
committed
[openmp] use generic ir
1 parent 431efcb commit ceb63c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

flang-classic/17.0-4/llvm-classic/clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ const char *amdgpu::dlr::getLinkCommandArgs(
271271
// the look-up of the libomptarget bc lib to happen and if not present
272272
// where it is expected it means we are using the build tree compiler
273273
// not the installed compiler.
274-
std::string LibDeviceName = "/libomptarget-amdgpu-" + GPUArch.str() + ".bc";
274+
std::string LibDeviceName = "/libomptarget-amdgpu.bc";
275275

276276
// Check if the device library can be found in
277277
// one of the LIBRARY_PATH directories.

flang-classic/17.0-4/llvm-classic/clang/lib/Driver/ToolChains/CommonArgs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,8 +2609,8 @@ void tools::addOpenMPDeviceRTL(const Driver &D,
26092609
StringRef ArchPrefix = Triple.isAMDGCN() ? "amdgpu" : "nvptx";
26102610
std::string LibOmpTargetName =
26112611
Triple.isAMDGCN()
2612-
? ("libomptarget-old-amdgpu-" + BitcodeSuffix + ".bc").str()
2613-
: ("libomptarget-nvptx-" + BitcodeSuffix + ".bc").str();
2612+
? ("libomptarget-old-amdgpu.bc")
2613+
: ("libomptarget-nvptx.bc");
26142614

26152615
// First check whether user specifies bc library
26162616
if (const Arg *A = DriverArgs.getLastArg(LibomptargetBCPathOpt)) {

0 commit comments

Comments
 (0)