[llvm] [Offload] Store kernel name in GenericKernelTy (PR #142799)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 05:48:11 PDT 2025
================
@@ -277,7 +282,7 @@ struct GenericKernelTy {
AsyncInfoWrapperTy &AsyncInfoWrapper) const = 0;
/// Get the kernel name.
- const char *getName() const { return Name; }
+ const char *getName() const { return Name.data(); }
----------------
jhuber6 wrote:
I see, most of its uses require a C-string anyway so it would be a pain to convert it at the site every time.
https://github.com/llvm/llvm-project/pull/142799
More information about the llvm-commits
mailing list