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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 10:14:58 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.
----------------
jhuber6 wrote:

Done

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


More information about the cfe-commits mailing list