Skip to content

Commit eca3d68

Browse files
committed
Revert "[AMDGPU][OpenMP] Emit textual IR for -emit-llvm -S"
This reverts commit 7f78e40.
1 parent 2934229 commit eca3d68

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4394,13 +4394,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
43944394
CmdArgs.push_back("-emit-llvm");
43954395
} else if (JA.getType() == types::TY_LLVM_BC ||
43964396
JA.getType() == types::TY_LTO_BC) {
4397-
// Emit textual llvm IR for AMDGPU offloading for -emit-llvm -S
4398-
if (Triple.isAMDGCN() && IsOpenMPDevice) {
4399-
if (Args.hasArg(options::OPT_S) && Args.hasArg(options::OPT_emit_llvm))
4400-
CmdArgs.push_back("-emit-llvm");
4401-
} else {
4402-
CmdArgs.push_back("-emit-llvm-bc");
4403-
}
4397+
CmdArgs.push_back("-emit-llvm-bc");
44044398
} else if (JA.getType() == types::TY_IFS ||
44054399
JA.getType() == types::TY_IFS_CPP) {
44064400
StringRef ArgStr =

clang/test/Driver/amdgpu-openmp-toolchain.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,3 @@
7171
// CHECK-C: "x86_64-unknown-linux-gnu" - "clang"
7272
// CHECK-C: "x86_64-unknown-linux-gnu" - "clang::as"
7373
// CHECK-C: "x86_64-unknown-linux-gnu" - "offload bundler"
74-
75-
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -emit-llvm -S -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx803 -nogpulib %s 2>&1 | FileCheck %s --check-prefix=CHECK-EMIT-LLVM-IR
76-
// CHECK-EMIT-LLVM-IR: clang{{.*}}"-cc1"{{.*}}"-triple" "amdgcn-amd-amdhsa"{{.*}}"-emit-llvm"

0 commit comments

Comments
 (0)