[clang] [SYCL] SYCL host kernel launch support for the sycl_kernel_entry_point attribute. (PR #152403)
Tom Honermann via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 10 09:16:38 PST 2025
================
@@ -898,6 +899,25 @@ static std::string convertCallArgsToString(Sema &S,
return Result;
}
+static std::string
+printCallArgsValueCategoryAndType(Sema &S, llvm::ArrayRef<const Expr *> Args) {
+ std::string Result;
+ llvm::raw_string_ostream OS(Result);
+ llvm::ListSeparator Comma;
+ OS << "(";
+ for (const Expr *Arg : Args) {
+ ExprValueKind EVK = Arg->getValueKind();
+ const char *ValueCategory =
+ (EVK == VK_LValue ? "lvalue"
----------------
tahonermann wrote:
I spent a long time trying to find a more "right" way to do this without success. I'm open to suggestions. I followed the closest precedent I could find; `convertCallArgsToString()` as used for `__builtin_dump_struct()` (which, yes, does more of a 'dump' kinda thing.
https://github.com/llvm/llvm-project/pull/152403
More information about the cfe-commits
mailing list