Skip to content

Commit 8775645

Browse files
committed
(1) Fix for test using new offloading path. Patch by Toguchi, Michael D. (2) Added -opaque-pointers option to LTO LIT tests
1 parent 344612e commit 8775645

File tree

6 files changed

+13
-11
lines changed

6 files changed

+13
-11
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6781,14 +6781,16 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args,
67816781
/*BoundArch=*/nullptr);
67826782
}
67836783

6784-
OffloadBuilder->appendTopLevelLinkAction(Actions);
6784+
if (!UseNewOffloadingDriver) {
6785+
OffloadBuilder->appendTopLevelLinkAction(Actions);
67856786

6786-
// With static fat archives we need to create additional steps for
6787-
// generating dependence objects for device link actions.
6788-
if (!LinkerInputs.empty() && C.getDriver().getOffloadStaticLibSeen())
6789-
OffloadBuilder->addDeviceLinkDependenciesFromHost(LinkerInputs);
6787+
// With static fat archives we need to create additional steps for
6788+
// generating dependence objects for device link actions.
6789+
if (!LinkerInputs.empty() && C.getDriver().getOffloadStaticLibSeen())
6790+
OffloadBuilder->addDeviceLinkDependenciesFromHost(LinkerInputs);
67906791

6791-
OffloadBuilder->unbundleStaticArchives(C, Args, PL);
6792+
OffloadBuilder->unbundleStaticArchives(C, Args, PL);
6793+
}
67926794

67936795
// For an FPGA archive, we add the unbundling step above to take care of
67946796
// the device side, but also unbundle here to extract the host side

llvm/test/Instrumentation/MemorySanitizer/count-zeroes.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; INTEL RUN: opt %s -opaque-pointers -S -passes=msan 2>&1 | FileCheck %s
2+
; RUN: opt %s -opaque-pointers -S -passes=msan 2>&1 | FileCheck %s
33

44
target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
55
target triple = "x86_64-unknown-linux-gnu"

llvm/test/LTO/X86/hidden-escaped-symbols-alt.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; RUN: split-file %s %t
44
; RUN: opt %t/hide-me.ll -o %t/hide-me.bc
55
; RUN: opt %t/ref.ll -o %t/ref.bc
6-
; INTEL RUN: llvm-lto2 run -opaque-pointers \
6+
; RUN: llvm-lto2 run -opaque-pointers \
77
; RUN: -r %t/hide-me.bc,_hide_me,p \
88
; RUN: -r %t/ref.bc,_main,plx \
99
; RUN: -r %t/ref.bc,_hide_me,l \

llvm/test/LTO/X86/hidden-escaped-symbols.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; RUN: split-file %s %t
44
; RUN: opt %t/hide-me.ll -o %t/hide-me.bc
55
; RUN: opt %t/ref.ll -o %t/ref.bc
6-
; INTEL RUN: llvm-lto2 run -opaque-pointers \
6+
; RUN: llvm-lto2 run -opaque-pointers \
77
; RUN: -r %t/hide-me.bc,_hide_me,p \
88
; RUN: -r %t/ref.bc,_main,plx \
99
; RUN: -r %t/ref.bc,_hide_me,l \

llvm/test/ThinLTO/X86/hidden-escaped-symbols-alt.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; RUN: split-file %s %t
44
; RUN: opt -module-summary %t/hide-me.ll -o %t/hide-me.bc
55
; RUN: opt -module-summary %t/ref.ll -o %t/ref.bc
6-
; INTEL RUN: llvm-lto2 run -opaque-pointers \
6+
; RUN: llvm-lto2 run -opaque-pointers \
77
; RUN: -r %t/hide-me.bc,_hide_me,p \
88
; RUN: -r %t/ref.bc,_main,plx \
99
; RUN: -r %t/ref.bc,_hide_me,l \

llvm/test/ThinLTO/X86/hidden-escaped-symbols.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; RUN: split-file %s %t
44
; RUN: opt -module-summary %t/hide-me.ll -o %t/hide-me.bc
55
; RUN: opt -module-summary %t/ref.ll -o %t/ref.bc
6-
; INTEL RUN: llvm-lto2 run -opaque-pointers \
6+
; RUN: llvm-lto2 run -opaque-pointers \
77
; RUN: -r %t/hide-me.bc,_hide_me,p \
88
; RUN: -r %t/ref.bc,_main,plx \
99
; RUN: -r %t/ref.bc,_hide_me,l \

0 commit comments

Comments
 (0)