Skip to content

[SYCL] Strengthen split-with-func-ptrs.ll test. #6481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2022
Merged
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
14 changes: 14 additions & 0 deletions llvm/test/tools/sycl-post-link/split-with-func-ptrs.ll
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ define linkonce_odr dso_local spir_func void @foo() unnamed_addr #0 comdat align
ret void
}

; -- Also check that function called from an addr-taken function is also added
; to every split module.
; Function Attrs: mustprogress norecurse nounwind
define weak dso_local spir_func void @baz() #3 {
; CHECK-A0: define weak dso_local spir_func void @baz
; CHECK-A1: define weak dso_local spir_func void @baz
; CHECK-B0: define weak dso_local spir_func void @baz
; CHECK-B1: define weak dso_local spir_func void @baz
; CHECK-C0: define weak dso_local spir_func void @baz
; CHECK-C1: define weak dso_local spir_func void @baz
ret void
}

; Function Attrs: mustprogress norecurse nounwind
define linkonce_odr dso_local spir_func void @bar() unnamed_addr #1 comdat align 2 {
; CHECK-A0: define linkonce_odr dso_local spir_func void @bar
Expand All @@ -46,6 +59,7 @@ define linkonce_odr dso_local spir_func void @bar() unnamed_addr #1 comdat align
; CHECK-B1: define linkonce_odr dso_local spir_func void @bar
; CHECK-C0: define linkonce_odr dso_local spir_func void @bar
; CHECK-C1: define linkonce_odr dso_local spir_func void @bar
call void @baz()
ret void
}

Expand Down