8000 [SYCL-JIT][NFCI] Enable few extra warnings by AlexeySachkov · Pull Request #19118 · intel/llvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[SYCL-JIT][NFCI] Enable few extra warnings #19118

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

AlexeySachkov
Copy link
Contributor

Those extra flags are required per our internal guidelines (the full list you can find in llvm/cmake/modules/AddSecurityFlags.cmake.

Even though we have this shared cmake module that applies those flags, I don't think that we will be able to use it for every flag, because baseline LLVM that we use isn't warning-free. Therefore, those flags were directly applied to sycl-jit.

Those extra flags are required per our internal guidelines (the full
list you can find in `llvm/cmake/modules/AddSecurityFlags.cmake`.

Even though we have this shared cmake module that applies those flags, I
don't think that we will be able to use it for every flag, because
baseline LLVM that we use isn't warning-free. Therefore, those flags
were directly applied to `sycl-jit`.
@AlexeySachkov AlexeySachkov requested a review from a team as a code owner June 24, 2025 16:45
Copy link
Contributor
@sommerlukas sommerlukas left a comment

Choose a reason for hiding this comment

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

Looks good, just one minor nit.

@@ -22,7 +22,7 @@ template <typename T> class DynArray {
explicit DynArray(size_t Size) { init(Size); }

template <typename InputIt> DynArray(InputIt Begin, InputIt End) {
init(End - Begin);
init(static_cast<size_t>(End - Begin));
Copy link
Contributor

Choose a reason for hiding this comment

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

Would std::distance work here?

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.

2 participants
0