-
Notifications
You must be signed in to change notification settings - Fork 787
[Driver][SYCL] Enable generation of spv based fat objects #4608
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
4 commits
Select commit
Hold shift + click to select a range
9a9b869
[Driver][SYCL] Enable generation of spv based fat objects
mdtoguchi 95d8ced
Merge remote-tracking branch 'otcshare_llvm/sycl' into spir-fat-object
mdtoguchi 8eafa6a
Merge remote-tracking branch 'otcshare_llvm/sycl' into spir-fat-object
mdtoguchi 38d544d
Merge remote-tracking branch 'otcshare_llvm/sycl' into spir-fat-object
mdtoguchi 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
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 @@ | ||
/// | ||
/// Tests for SPIR-V related objects | ||
AGindinson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/// | ||
|
||
// REQUIRES: clang-driver | ||
|
||
/// -fsycl-device-obj=spirv | ||
// RUN: %clangxx -target x86_64-unknown-linux-gnu -c -fsycl -fsycl-device-obj=spirv -### %s 2>&1 | \ | ||
// RUN: FileCheck %s -check-prefix SPIRV_DEVICE_OBJ | ||
// SPIRV_DEVICE_OBJ: clang{{.*}} "-cc1" "-triple" "spir64-unknown-unknown" | ||
// SPIRV_DEVICE_OBJ-SAME: "-aux-triple" "x86_64-unknown-linux-gnu" | ||
// SPIRV_DEVICE_OBJ-SAME: "-fsycl-is-device" | ||
// SPIRV_DEVICE_OBJ-SAME: "-o" "[[DEVICE_BC:.+\.bc]]" | ||
// SPIRV_DEVICE_OBJ: llvm-spirv{{.*}} "-o" "[[DEVICE_SPV:.+\.spv]]" | ||
// SPIRV_DEVICE_OBJ-SAME: "[[DEVICE_BC]]" | ||
// SPIRV_DEVICE_OBJ: clang{{.*}} "-cc1" "-triple" "x86_64-unknown-linux-gnu" | ||
// SPIRV_DEVICE_OBJ-SAME: "-fsycl-is-host" | ||
// SPIRV_DEVICE_OBJ-SAME: "-o" "[[HOST_OBJ:.+\.o]]" | ||
// SPIRV_DEVICE_OBJ: clang-offload-bundler{{.*}} "-type=o" | ||
// SPIRV_DEVICE_OBJ-SAME: "-inputs=[[DEVICE_SPV]],[[HOST_OBJ]]" | ||
|
||
// RUN: %clangxx -target x86_64-unknown-linux-gnu -c -fsycl -fsycl-device-obj=spirv -ccc-print-phases %s 2>&1 | \ | ||
// RUN: FileCheck %s -check-prefix SPIRV_DEVICE_OBJ_PHASES | ||
// SPIRV_DEVICE_OBJ_PHASES: 0: input, "[[INPUTSRC:.+\.cpp]]", c++, (device-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 1: preprocessor, {0}, c++-cpp-output, (device-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 2: compiler, {1}, ir, (device-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 3: llvm-spirv, {2}, spirv, (device-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 4: offload, "device-sycl (spir64-unknown-unknown)" {3}, spirv | ||
// SPIRV_DEVICE_OBJ_PHASES: 5: input, "[[INPUTSRC]]", c++, (host-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 6: append-footer, {5}, c++, (host-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 7: preprocessor, {6}, c++-cpp-output, (host-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 8: offload, "host-sycl (x86_64-unknown-linux-gnu)" {7}, "device-sycl (spir64-unknown-unknown)" {3}, c++-cpp-output | ||
// SPIRV_DEVICE_OBJ_PHASES: 9: compiler, {8}, ir, (host-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 10: backend, {9}, assembler, (host-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 11: assembler, {10}, object, (host-sycl) | ||
// SPIRV_DEVICE_OBJ_PHASES: 12: clang-offload-bundler, {4, 11}, object, (host-sycl) |
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.