Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][ESIMD] Enhance enum logging support #917

Merged
merged 4 commits into from
Mar 15, 2022

Conversation

yuriykoch
Copy link

Provides two major API enhancements:

  • value_pack::generate_named_by - to use custom stringification functions
  • log::StringMaker specialization support

Note that any StringMaker specialization will be automatically used within value_pack::generate_named(void) call

Also fixes compilation with ESIMD_TESTS_VERBOSE_LOG enabled

Signed-off-by: Kochetkov, Yuriy [email protected]

Signed-off-by: Kochetkov, Yuriy <[email protected]>
It's usefull to have for value packs with enum type

Signed-off-by: Kochetkov, Yuriy <[email protected]>
We should avoid function templates specialization in general

Signed-off-by: Kochetkov, Yuriy <[email protected]>
By using `log::stringify()` call instead of the hard-coded
`std::to_string()` calls we enable the `StringMaker` usage
with all benefits of any custom specialization provided.

Signed-off-by: Kochetkov, Yuriy <[email protected]>
@yuriykoch
Copy link
Author

@vasilytric Would you mind to take a look?

@yuriykoch
Copy link
Author

@sndmitriev Would you mind to take a look?

@yuriykoch
Copy link
Author

@sndmitriev Friendly ping as #921 depends on it

Copy link

@sndmitriev sndmitriev left a comment

Choose a reason for hiding this comment

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

LGTM

@yuriykoch
Copy link
Author

Thanks :) @kbobrovs Would you mind to merge this PR?

@kbobrovs kbobrovs merged commit 2ace807 into intel:intel Mar 15, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Jun 17, 2022
* [SYCL][ESIMD] Add `value_pack::generate_named_by()`
It's usefull to have for value packs with enum type
* [SYCL][ESIMD] Add `log::StringMaker<>` for specialization
We should avoid function templates specialization in general
* [SYCL][ESIMD] Use `StringMaker` in `value_pack` generation
By using `log::stringify()` call instead of the hard-coded
`std::to_string()` calls we enable the `StringMaker` usage
with all benefits of any custom specialization provided.

Signed-off-by: Kochetkov, Yuriy <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
* [SYCL][ESIMD] Add `value_pack::generate_named_by()`
It's usefull to have for value packs with enum type
* [SYCL][ESIMD] Add `log::StringMaker<>` for specialization
We should avoid function templates specialization in general
* [SYCL][ESIMD] Use `StringMaker` in `value_pack` generation
By using `log::stringify()` call instead of the hard-coded
`std::to_string()` calls we enable the `StringMaker` usage
with all benefits of any custom specialization provided.

Signed-off-by: Kochetkov, Yuriy <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants