Skip to content

Conversation

aelovikov-intel
Copy link
Contributor

@aelovikov-intel aelovikov-intel commented Sep 25, 2025

  • Use a Hasher to "accumulate" the hash instead of manually merging multiple hash results (seems more canonical usage to me).
  • Likewise, don't join(CommandLine, ",") but rather iterate over the vector.
  • Sink class HashPreprocessedAction directly to its single use.
  • Add CLANG_VERSION_STRING to the hash as a way to represent current libsycl-jit.so version.

* Hash `UserArgList`/`BinaryFormat` before `createCommandLine`, that
  will allow me to move `createCommandLine` down into `SYCLToolchain` in
  a subsequent change.
* Use a `Hasher` to "accumulate" the hash instead of manually merging
  multiple hash results (seems more canonical usage to me).
* Sink `class HashPreprocessedAction` directly to its single use.
* Add `CLANG_VERSION_STRING` to the hash as a way to represent current
  libsycl-jit.so version.
@aelovikov-intel aelovikov-intel marked this pull request as draft September 25, 2025 20:21
@aelovikov-intel aelovikov-intel marked this pull request as ready for review September 25, 2025 20:35
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Sep 25, 2025
After intel#20204 it's easy to stop using
the translated command line to compute the hash (by doing that on user's
options + format), which in turn allows us to perform this translation
in a single place.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Sep 25, 2025
After intel#20204 it's easy to stop using
the translated command line to compute the hash (by doing that on user's
options + format), which in turn allows us to perform this translation
in a single place.
@aelovikov-intel aelovikov-intel merged commit 4398638 into intel:sycl Sep 26, 2025
64 of 68 checks passed
@aelovikov-intel aelovikov-intel deleted the hash-refactor branch September 26, 2025 18:32
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Sep 26, 2025
After intel#20204 it's easy to stop using
the translated command line to compute the hash (by doing that on user's
options + format), which in turn allows us to perform this translation
in a single place.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Sep 26, 2025
After intel#20204 it's easy to stop using
the translated command line to compute the hash (by doing that on user's
options + format), which in turn allows us to perform this translation
in a single place.
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