-
Notifications
You must be signed in to change notification settings - Fork 738
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
Conversation
Signed-off-by: Sudarsanam, Arvind <arvind.sudarsanam@intel.com>
I will add a test soon. |
✅ With the latest revision this PR passed the C/C++ code formatter. |
Signed-off-by: Sudarsanam, Arvind <arvind.sudarsanam@intel.com>
There was a problem hiding this 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.
if (Node->getOperand(0)) { | ||
auto *Constant = | ||
cast<ConstantAsMetadata>(Node->getOperand(0))->getValue(); |
There was a problem hiding this comment.
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();
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. |
This pull request was closed because it has been stalled for 30 days with no activity. |
@asudarsa is this still of interest? |
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