[llvm] [Offload] Define additional device info properties (PR #152533)
Rafal Bielski via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 8 02:47:36 PDT 2025
================
@@ -158,16 +158,32 @@ class Etor<string Name, string Desc> {
string tagged_type;
}
+class EtorTemplate<string Name, string Desc, list<string> TemplateValues> : Etor<Name, Desc> {
+ // Create Etor for every value in template_values by replacing the string
+ // "<TemplateEtor>" with the template value in the name and description
----------------
rafbiels wrote:
Fair point about the brackets as the use case is indeed different from the rest of TableGen. Let's find another solution.
However, if it's a single special character, do we need to implement a way to escape it? May be unlikely, but what if someone wants to use `$` in the description as a character? Longer string leaves less room for confusion. How about `%TEMPLATE%`?
https://github.com/llvm/llvm-project/pull/152533
More information about the llvm-commits
mailing list