Skip to content

[ESIMD] Add ext::intel::experimental::esimd::wait() #8434

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
Feb 23, 2023

Conversation

v-klochkov
Copy link
Contributor

The function is a very specific tool to set up a scoreboard dependency, add a use for the given value. It also prevents dead/unused value from optimizing away.

The function is a very specific tool to set up a scoreboard dependency,
add a use for the given value. It also prevents dead/unused value from
optimizing away.

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@@ -505,6 +505,7 @@ class ESIMDIntrinDescTable {
{"raw_send2_noresult",
{"raw.send2.noresult",
{a(0), a(1), ai1(2), a(3), a(4), a(5), a(6), a(7)}}},
{"wait", {"dummy.mov", {a(0)}}},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw the llvm-test-suite test but should we also add a lit test for the lowering?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test intel/llvm-test-suite#1615 does verify the lowering.
Please see the "// CHECK: " lines there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah there's some tradeoff because that's technically out of tree and doesn't get run with check-llvm, but I don't think it's a big deal

@v-klochkov v-klochkov merged commit 714cfc3 into intel:sycl Feb 23, 2023
@v-klochkov v-klochkov deleted the esimd_wait branch February 23, 2023 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants