-
Notifications
You must be signed in to change notification settings - Fork 789
[SYCL][Fusion] Adapt internalization to opaque pointers. #10882
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
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
498b169
[SYCL][Fusion] Adapt internalization to opaque pointers.
jopperm abc4bb3
Explain magic number.
jopperm 4692a29
Merge remote-tracking branch 'origin/sycl' into fix-kf-internalization
jopperm 3f94da5
Add tests.
jopperm f4657de
Merge remote-tracking branch 'origin/sycl' into fix-kf-internalization
jopperm a88f3cb
Fix bug in testcase.
jopperm eff9513
Merge remote-tracking branch 'origin/sycl' into fix-kf-internalization
jopperm 8942ee0
Add lit test for conservative call behavior.
jopperm 953a93a
Merge remote-tracking branch 'origin/sycl' into fix-kf-internalization
jopperm 5016727
Mark new local promotion test as unsupported on CUDA.
jopperm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \ | ||
; RUN: -passes=sycl-internalization --sycl-info-path %S/abort-kernel-info.yaml -S %s | FileCheck %s | ||
|
||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024" | ||
target triple = "spir64-unknown-unknown" | ||
|
||
; Function Attrs: noinline | ||
define void @fun(ptr addrspace(1) %arg) #0 { | ||
ret void | ||
} | ||
|
||
%struct = type { i32, i32, i32 } | ||
|
||
; CHECK-LABEL: define {{[^@]+}}@fused_0 | ||
; CHECK-SAME: (ptr addrspace(1) align 4 %[[ACC:.*]]) | ||
define spir_kernel void @fused_0(ptr addrspace(1) align 4 %acc) !kernel_arg_addr_space !12 !kernel_arg_access_qual !13 !kernel_arg_type !14 !kernel_arg_type_qual !15 !kernel_arg_base_type !14 !kernel_arg_name !16 !sycl.kernel.promote !17 !sycl.kernel.promote.localsize !18 { | ||
; Scenario: Test private internalization is not performed when pointers into | ||
; aggregate object are passed to function calls. | ||
|
||
; CHECK-NOT: alloca [1 x %struct] | ||
%gep1 = getelementptr %struct, ptr addrspace(1) %acc, i64 17 | ||
%gep2 = getelementptr %struct, ptr addrspace(1) %gep1, i64 0, i32 2 | ||
call void @fun(ptr addrspace(1) %gep2) | ||
store i32 42, ptr addrspace(1) %gep2 | ||
ret void | ||
} | ||
|
||
attributes #0 = { noinline } | ||
|
||
!12 = !{i32 1} | ||
!13 = !{!"none"} | ||
!14 = !{!"ptr"} | ||
!15 = !{!""} | ||
!16 = !{!"acc"} | ||
!17 = !{!"private"} | ||
!18 = !{i64 1} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.