Author: Victor Mustya
Date: 2025-01-09T13:03:16-08:00
New Revision: f764e71b7017e7264fffc410f5e10ef959e49294

URL: 
https://github.com/llvm/llvm-project/commit/f764e71b7017e7264fffc410f5e10ef959e49294
DIFF: 
https://github.com/llvm/llvm-project/commit/f764e71b7017e7264fffc410f5e10ef959e49294.diff

LOG: [Clang][TableGen] Add missing __bf16 type to the builtins parser (#120662)

The Clang tablegen built-in function prototype parser has the `__bf16`
type missing. This patch adds the missing type to the parser.

Added: 
    

Modified: 
    clang/test/TableGen/target-builtins-prototype-parser.td

Removed: 
    


################################################################################
diff  --git a/clang/test/TableGen/target-builtins-prototype-parser.td 
b/clang/test/TableGen/target-builtins-prototype-parser.td
index 555aebb3ccfb1f..a753f906a674fe 100644
--- a/clang/test/TableGen/target-builtins-prototype-parser.td
+++ b/clang/test/TableGen/target-builtins-prototype-parser.td
@@ -57,6 +57,12 @@ def : Builtin {
   let Spellings = ["__builtin_08"];
 }
 
+def : Builtin {
+// CHECK: BUILTIN(__builtin_09, "V2yy", "")
+  let Prototype = "_Vector<2, __bf16>(__bf16)";
+  let Spellings = ["__builtin_09"];
+}
+
 #ifdef ERROR_EXPECTED_LANES
 def : Builtin {
 // ERROR_EXPECTED_LANES: :[[# @LINE + 1]]:7: error: Expected number of lanes 
after '_ExtVector<'
@@ -112,4 +118,3 @@ def : Builtin {
   let Spellings = ["__builtin_test_use_clang_extended_vectors"];
 }
 #endif
-


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to