-
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] Make PropertySetRegistry being owning it's content #12582
Conversation
Before this patch PropertySetRegistry used StringRefs that point at external data that was supposed to outlive the instance of PropertySetRegistry. It wasn't obvious and it might lead to memory bugs. This patch makes PropertySetRegistry owning it's content as containers usually do. Also the previous implementation had a property that a content is being printed in the order it was added. This patch removes this property. However, the patch brings a sorted order in write() method in order to make testing as easy as it was. Accordingly, all affected tests were aligned to the sorted order. Also documentation is aligned with doxygen BKSM.
From test's failures it looks like we can't simply change the order of spec const's IDs in metadata. |
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.
sycl/test/* changes LGTM
Fix failing test in sycl/test/basic_tests. Get order of elements preserved as it was initially. Align tests correspondingly.
Status update: |
@asudarsa Could you please review this when you have free time? |
Hi @maksimsab I think such changes to core LLVM files should be directly made upstream, I would advise to split this into two PR. One upstream PR to change code inside PropertySetIO files and once that change is done, you can make the changes to sycl-post-link on top of it. Thanks |
Hi @asudarsa PropertySetIO doesn't belong to llvm-project. |
Oh. You are right. Sorry a miss on my part. One more thing to upstream then |
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.
lgtm
The pre-commit failure is known and has been reported already in #12791. I don't think it's related to these changes. |
Before this patch PropertySetRegistry used StringRefs that point at external data that was supposed to outlive the instance of PropertySetRegistry. It wasn't obvious and it might lead to memory bugs. This patch makes PropertySetRegistry owning it's content as containers usually do.
Also documentation is aligned with doxygen BKSM.