[clang] [AMDGPU] Programmatically port old `.def` clang builtins to `.td` (PR #175873)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 09:15:16 PST 2026


================
@@ -200,7 +200,18 @@ class PrototypeParser {
       // we cannot have nested _ExtVector.
       if (Current.starts_with("_ExtVector<") ||
           Current.starts_with("_Vector<")) {
-        const size_t EndTemplate = Current.find('>', 0);
+        size_t Pos = Current.find('<');
+        int Depth = 1;
+
+        // There may be a nested address_space<...> modifier on the type.
----------------
shiltian wrote:

Hmm, did I misunderstand it? There are plenty of tests under `clang/test/TableGen/`.

https://github.com/llvm/llvm-project/pull/175873


More information about the cfe-commits mailing list