Skip to content
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

[SYCL][sycl-post-link] Add check for deleted Spec Constant Operands #12597

Closed
wants to merge 2 commits into from

Conversation

asudarsa
Copy link
Contributor

@asudarsa asudarsa commented Feb 2, 2024

When we turn on -emit-only-kernel-as-entry-points by default for sycl-post-link tools, there are some entries in some of the specialization constant metadata are not carried over. Hence, a check is required to ensure we are not parsing 'null' specialization constants.

Thanks

Signed-off-by: Sudarsanam, Arvind <arvind.sudarsanam@intel.com>
@asudarsa asudarsa requested a review from a team as a code owner February 2, 2024 21:33
@asudarsa
Copy link
Contributor Author

asudarsa commented Feb 2, 2024

I will add a test soon.

Copy link
Contributor

github-actions bot commented Feb 2, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

Signed-off-by: Sudarsanam, Arvind <arvind.sudarsanam@intel.com>
Copy link
Contributor

@maksimsab maksimsab left a comment

Choose a reason for hiding this comment

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

Looking forward for a test.

Comment on lines +1007 to +1009
if (Node->getOperand(0)) {
auto *Constant =
cast<ConstantAsMetadata>(Node->getOperand(0))->getValue();
Copy link
Contributor

Choose a reason for hiding this comment

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

if (auto *O = Node->getOperand(0); O) {
      auto *Constant =
          cast<ConstantAsMetadata>(O)->getValue();

@asudarsa asudarsa requested review from maarquitos14 and removed request for maarquitos14 April 9, 2024 15:39
Copy link
Contributor

github-actions bot commented Oct 8, 2024

This pull request is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be automatically closed in 30 days.

@github-actions github-actions bot added the Stale label Oct 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

This pull request was closed because it has been stalled for 30 days with no activity.

@github-actions github-actions bot closed this Nov 8, 2024
@maarquitos14
Copy link
Contributor

@asudarsa is this still of interest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants